:root {
    --primary: #0f766e;
    --primary-dark: #0d5f59;
    --text: #1f2937;
    --bg: #f8fafc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
}

a {
    text-decoration: none;
    color: inherit;
}

nav {
    background: #0f172a;
    color: #fff;
    padding: 14px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav .brand {
    font-weight: 700;
    letter-spacing: 0.2px;
    flex-shrink: 0;
}

/* centred link group */
nav .nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

nav a {
    color: rgba(255,255,255,0.82);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 7px 13px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

nav a:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

/* Tours highlight - teal pill */
nav a.nav-tours {
    background: #0e9f8a;
    color: #fff !important;
    font-weight: 700;
}
nav a.nav-tours:hover {
    background: #0f766e;
}

@media (max-width: 860px) {
    nav .nav-links {
        position: static;
        transform: none;
        flex-wrap: wrap;
        justify-content: center;
    }
    nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

header {
    min-height: 82vh;
    background: linear-gradient(rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.45)), url("images/montego-hero.jpg") no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 24px;
}

header h1 {
    font-size: 2.8rem;
    max-width: 900px;
}

header p {
    margin-top: 10px;
    margin-bottom: 22px;
    max-width: 700px;
    font-size: 1.1rem;
}

button {
    border: none;
    border-radius: 8px;
    padding: 11px 18px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
}

button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.section {
    padding: 62px 20px;
    text-align: center;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-intro {
    max-width: 700px;
    margin: 0 auto 26px;
    color: #475569;
}

.tours {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    text-align: left;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px;
}

.card h3 {
    margin-bottom: 8px;
}

.card p {
    margin-bottom: 14px;
    color: #475569;
    flex-grow: 1;
}

.card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.card-actions a {
    flex: 1;
}

.card button {
    width: 100%;
}

form {
    background: #fff;
    max-width: 620px;
    margin: 0 auto;
    border-radius: 14px;
    padding: 24px;
    text-align: left;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    display: grid;
    gap: 12px;
}

input, select, textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 11px 12px;
    font-size: 1rem;
    font-family: inherit;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
}

#bookingStatus {
    min-height: 22px;
    color: #0f766e;
    font-weight: 700;
}

.section-reviews {
    background: #f1f5f9;
}

.reviews-summary {
    max-width: 620px;
    margin: 0 auto 28px;
}

.reviews-summary-inner {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 16px;
    padding: 20px 24px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.reviews-avg-number {
    font-size: 2.25rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}

.reviews-count {
    font-size: 0.95rem;
    color: #64748b;
}

.reviews-summary-empty {
    color: #64748b;
    margin: 0 auto;
    max-width: 520px;
}

.review-stars {
    display: inline-flex;
    gap: 2px;
    font-size: 1.25rem;
    line-height: 1;
    letter-spacing: -2px;
}

.review-stars .star-on {
    color: #fbbc04;
}

.review-stars .star-off {
    color: #dadce0;
}

.reviews-list {
    max-width: 720px;
    margin: 0 auto 36px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

.review-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.review-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 8px;
}

.review-card-name {
    color: #0f172a;
}

.review-card-text {
    color: #334155;
    margin: 0;
    font-size: 0.98rem;
}

.review-card-date {
    margin: 10px 0 0;
    font-size: 0.85rem;
    color: #94a3b8;
}

.review-form {
    max-width: 620px;
}

.review-form h3 {
    margin-bottom: 12px;
    font-size: 1.15rem;
    color: #0f172a;
}

.star-rating-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.star-rating-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

.star-rating {
    display: flex;
    gap: 4px;
}

.star-btn {
    background: none;
    border: none;
    padding: 4px;
    font-size: 2rem;
    line-height: 1;
    color: #dadce0;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
}

.star-btn:hover,
.star-btn:focus-visible {
    color: #f9ab00;
    outline: none;
    transform: scale(1.08);
}

.star-btn.is-active {
    color: #fbbc04;
}

#reviewStatus {
    min-height: 22px;
    color: #0f766e;
    font-weight: 700;
}

.tour-details {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    padding: 40px 20px;
}

.tour-details img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 25px;
}

.tour-details ul {
    list-style: disc;
    padding-left: 20px;
}

.slideshow-container {
    max-width: 700px;
    position: relative;
    margin: 20px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slide {
    display: none;
}

.slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 12px;
    margin-top: -22px;
    color: #fff;
    font-weight: 700;
    font-size: 22px;
    user-select: none;
    background: rgba(0, 0, 0, 0.4);
}

.next {
    right: 0;
}

.prev:hover, .next:hover {
    background: rgba(0, 0, 0, 0.7);
}

footer {
    padding: 20px;
    text-align: center;
    background: #0f172a;
    color: #cbd5e1;
}

@media screen and (max-width: 768px) {
    nav {
        flex-wrap: wrap;
    }

    header h1 {
        font-size: 2.1rem;
    }

    .card-actions {
        flex-direction: column;
    }
}

/* ===== PREMIUM UI POLISH ===== */

body{
    background:#f8fafc;
    color:#0f172a;
}

/* NAVBAR */
nav{
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.92) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border-bottom:1px solid rgba(226,232,240,0.7);
}

/* REMOVE HOME LINK SPACING */
nav a[href="index.html"]{
    display:none;
}

/* HERO */
.hero::before{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(rgba(15,23,42,0.55), rgba(15,23,42,0.45));
}

.hero{
    position:relative;
    overflow:hidden;
}

.hero-content{
    position:relative;
    z-index:2;
}

.hero h1{
    font-weight:800;
    letter-spacing:-1px;
    text-shadow:0 8px 24px rgba(0,0,0,0.35);
}

.hero p{
    font-size:1.05rem;
    color:#e2e8f0;
}

/* TOUR CARDS */
.tour-card,
.card{
    border-radius:22px !important;
    overflow:hidden;
    border:none !important;
    box-shadow:0 15px 40px rgba(15,23,42,0.08);
    transition:0.35s ease;
    background:#fff;
}

.tour-card:hover,
.card:hover{
    transform:translateY(-6px);
    box-shadow:0 24px 50px rgba(15,23,42,0.14);
}

.tour-card img,
.card img{
    object-fit:cover;
    object-position:center 25%;
    transition:0.5s ease;
}

.tour-card:hover img,
.card:hover img{
    transform:scale(1.04);
}

/* SECTION SPACING */
section{
    padding-top:80px;
    padding-bottom:80px;
}

/* HEADINGS */
.section-title,
h2{
    font-weight:800;
    letter-spacing:-0.5px;
    color:#0f172a;
}

/* BUTTONS */
button,
.btn,
.book-btn{
    border-radius:999px !important;
    font-weight:700;
    transition:0.3s ease;
    box-shadow:0 10px 25px rgba(15,118,110,0.18);
}

button:hover,
.btn:hover,
.book-btn:hover{
    transform:translateY(-2px);
}

/* FORMS */
input,
textarea,
select{
    border-radius:14px !important;
    border:1px solid #dbe4ee !important;
    transition:0.25s ease;
}

input:focus,
textarea:focus,
select:focus{
    border-color:#0f766e !important;
    box-shadow:0 0 0 4px rgba(15,118,110,0.12);
    outline:none;
}

/* REVIEWS */
.reviews-summary{
    display:none !important;
}

.review-form{
    background:#fff;
    border-radius:24px;
    padding:32px;
    box-shadow:0 15px 35px rgba(15,23,42,0.08);
}

.review-photo-upload{
    margin-top:16px;
    padding:18px;
    border-radius:16px;
    background:#f1f5f9;
    border:2px dashed #cbd5e1;
}

/* PAYMENT BADGES */
.payment-options{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-top:24px;
}

.payment-badge{
    background:#0f172a;
    color:#fff;
    padding:10px 18px;
    border-radius:999px;
    font-size:14px;
    font-weight:700;
}

/* FOOTER */
footer{
    background:#0f172a !important;
    color:#fff;
}

footer p,
footer a{
    color:#cbd5e1 !important;
}



/* NAVBAR VISIBILITY FIX */
nav{
    background:#0f172a !important;
}

nav a{
    color:#ffffff !important;
}

nav .brand{
    color:#2dd4bf !important;
}

/* REVIEW PHOTO UPLOAD */
.review-photo-upload{
    display:block !important;
}

/* ===== AIRPORT NAV LINK ===== */
.nav-airport {
    background: #D4AF37 !important;
    color: #1a1200 !important;
    padding: 7px 16px !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.2px;
    transition: background 0.2s ease !important;
}
.nav-airport:hover {
    background: #F0D060 !important;
    color: #1a1200 !important;
}

/* ===== ACTIVE NAV PAGE HIGHLIGHT ===== */
/* Default active: white pill with dark text */
nav .nav-links a.nav-active {
    background: rgba(255,255,255,0.18) !important;
    color: #fff !important;
    font-weight: 600 !important;
    position: relative;
}

/* Underline dot indicator */
nav .nav-links a.nav-active::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #2dd4bf;
}

/* Tours active pill keeps teal but brighter */
nav .nav-links a.nav-tours.nav-active {
    background: #0e9f8a !important;
    box-shadow: 0 0 0 2px rgba(14,159,138,0.45) !important;
}
nav .nav-links a.nav-tours.nav-active::after { background: #fff; }

/* Reviews, Reservations, Contact, About active */
nav .nav-links a.nav-active:not(.nav-tours):not(.nav-airport) {
    background: rgba(255,255,255,0.15) !important;
    color: #fff !important;
    outline: 1.5px solid rgba(255,255,255,0.3);
    outline-offset: -1px;
}
