/* =========================================================
   TOURS PAGE — DEDICATED STYLESHEET
   Imports base styles from style.css, extends for tours.
========================================================= */

/* ---- HERO ---- */
.tours-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background:
        linear-gradient(160deg, rgba(10,40,20,0.82) 0%, rgba(26,67,43,0.70) 60%, rgba(0,0,0,0.55) 100%),
        url('../images/hero.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 1.5rem;
    overflow: hidden;
}

.tours-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 60%, rgba(212,175,55,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.tours-hero-overlay {
    display: none;
}

.tours-hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
    animation: fadeInDown 1s ease;
}

.tours-hero-badge {
    display: inline-block;
    background: rgba(212,175,55,0.2);
    border: 1px solid rgba(212,175,55,0.5);
    color: var(--accent-color);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.tours-hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.tours-hero-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.88);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tours-hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.7);
    color: #fff;
    padding: 12px 30px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
}

.tours-hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 1.4rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 2;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ---- SECTION SUBTITLE ---- */
.section-subtitle {
    color: #666;
    font-size: 1rem;
    margin-top: 0.5rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- HOW IT WORKS ---- */
.tours-how {
    background: #fff;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    position: relative;
}

.how-grid::before {
    content: '';
    position: absolute;
    top: 52px;
    left: calc(16.67% + 1rem);
    right: calc(16.67% + 1rem);
    height: 2px;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    z-index: 0;
    opacity: 0.3;
}

@media (max-width: 768px) {
    .how-grid::before { display: none; }
}

.how-step {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    background: var(--bg-light);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.how-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(26,67,43,0.1);
}

.how-step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.how-step i {
    font-size: 2.8rem;
    color: var(--secondary-color);
    margin-bottom: 1.2rem;
    display: block;
}

.how-step h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.how-step p {
    color: #666;
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ---- VEHICLE SECTION ---- */
.tours-vehicle-section {
    background: var(--bg-light);
}

.vehicle-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
    padding: 2.5rem;
    align-items: start;
    border: 1px solid rgba(26,67,43,0.08);
}

@media (max-width: 860px) {
    .vehicle-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.vehicle-icon-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d6a4f 100%);
    border-radius: 12px;
    padding: 3rem 1.5rem;
    position: relative;
    min-height: 220px;
}

.vehicle-icon {
    font-size: 5rem;
    color: rgba(255,255,255,0.9);
    display: block;
    margin-bottom: 0.5rem;
}

.vehicle-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: #1a1a1a;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.vehicle-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.vehicle-details h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 2rem;
}

.vehicle-type {
    color: #888;
    font-size: 0.9rem;
}

.vehicle-desc {
    color: #555;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.vehicle-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.vehicle-spec {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: #444;
    background: var(--bg-light);
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
}

.vehicle-spec i {
    color: var(--secondary-color);
    width: 16px;
    text-align: center;
}

.vehicle-pricing {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

.price-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1.5px solid rgba(26,67,43,0.15);
    border-radius: 10px;
    padding: 0.85rem 1.1rem;
    flex: 1;
    min-width: 150px;
}

.price-card > i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.price-card > div {
    flex: 1;
}

.price-card strong {
    display: block;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.price-card span:not(.price-tag) {
    font-size: 0.78rem;
    color: #888;
}

.price-tag {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--secondary-color);
    white-space: nowrap;
}

.vehicle-note {
    text-align: center;
    color: #888;
    font-size: 0.88rem;
    margin-top: 1.5rem;
    padding: 0.75rem;
    background: rgba(255,200,0,0.06);
    border: 1px solid rgba(255,200,0,0.2);
    border-radius: 8px;
}

.vehicle-note i {
    color: #d4af37;
    margin-right: 6px;
}

/* ---- TOUR GRID ---- */
.tour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .tour-grid {
        grid-template-columns: 1fr;
    }
}

.tour-card {
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tour-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(26,67,43,0.15);
}

/* Tour card images — gradient fills as background */
.tour-card-img {
    position: relative;
    height: 220px;
    background-size: cover !important;
    background-position: center !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
}

.tour-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
}

/* Individual tour images using CSS gradients + icons */
.tour-img-ella     { background: linear-gradient(135deg, #1a6b3a 0%, #4caf50 50%, #2d5016 100%), center/cover; }
.tour-img-nuwara   { background: linear-gradient(135deg, #1565c0 0%, #42a5f5 50%, #0d47a1 100%), center/cover; }
.tour-img-kandy    { background: linear-gradient(135deg, #6a1b9a 0%, #ab47bc 50%, #4a148c 100%), center/cover; }
.tour-img-horton   { background: linear-gradient(135deg, #37474f 0%, #78909c 50%, #263238 100%), center/cover; }
.tour-img-yala     { background: linear-gradient(135deg, #e65100 0%, #ff9800 50%, #bf360c 100%), center/cover; }
.tour-img-galle    { background: linear-gradient(135deg, #006064 0%, #26c6da 50%, #004d40 100%), center/cover; }
.tour-img-sigiriya { background: linear-gradient(135deg, #880e4f 0%, #e91e63 50%, #4a148c 100%), center/cover; }

/* Tour icon inside card header (decorative) */
.tour-card-img::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background: radial-gradient(circle at 70% 30%, #fff 0%, transparent 70%);
    pointer-events: none;
}

.tour-card-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.tour-badge {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tour-badge-popular  { background: rgba(220, 60, 60, 0.85); }
.tour-badge-distance { background: rgba(0, 0, 0, 0.5); }

.tour-card-title {
    position: relative;
    z-index: 1;
    color: #fff;
}

.tour-card-title h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.tour-card-title span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.3px;
}

.tour-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.tour-card-body p {
    color: #555;
    font-size: 0.92rem;
    line-height: 1.7;
}

.tour-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tour-highlights span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-light);
    border: 1px solid rgba(26,67,43,0.1);
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
}

.tour-highlights span i {
    color: var(--secondary-color);
    font-size: 0.7rem;
}

.tour-note {
    background: rgba(255,200,0,0.08);
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    font-size: 0.8rem !important;
    color: #7a6200 !important;
}

.tour-note i {
    color: var(--accent-color);
    margin-right: 4px;
}

.btn-book-tour {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: #fff;
    padding: 11px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    margin-top: auto;
    justify-content: center;
}

.btn-book-tour:hover {
    background: transparent;
    color: var(--primary-color);
}

/* ---- CUSTOM TOUR CTA ---- */
.tours-custom {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d6a4f 50%, #1a432b 100%);
    padding: 5rem 5%;
    max-width: none;
    margin: 0;
}

.tours-custom-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.tours-custom-icon {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: block;
}

.tours-custom h2 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.tours-custom p {
    color: rgba(255,255,255,0.82);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* ---- BOOK DRIVER FORM ---- */
.book-driver-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 860px) {
    .book-driver-container {
        grid-template-columns: 1fr;
    }
}

.book-driver-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.driver-info-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition);
    border: 1px solid rgba(26,67,43,0.08);
}

.driver-info-card:hover {
    transform: translateX(6px);
    box-shadow: 0 4px 20px rgba(26,67,43,0.08);
}

.driver-info-card i {
    font-size: 1.75rem;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    display: block;
}

.driver-info-card h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.driver-info-card p {
    color: #666;
    font-size: 0.88rem;
    line-height: 1.6;
}

.book-driver-form-wrap {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 40px rgba(0,0,0,0.07);
    border: 1px solid rgba(0,0,0,0.05);
}

.driver-booking-form h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.75rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
}

.driver-booking-form .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background: #fff;
    color: #333;
    -webkit-appearance: auto;
}

.driver-booking-form .form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.driver-booking-form .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 14px;
    margin-top: 0.5rem;
}

.form-disclaimer {
    text-align: center;
    color: #999;
    font-size: 0.8rem;
    margin-top: 1rem;
}

.form-disclaimer i {
    color: var(--secondary-color);
}

/* ---- RESPONSIVE HERO ---- */
@media (max-width: 768px) {
    .tours-hero-content h1 {
        font-size: 2.8rem;
    }

    .vehicle-card {
        padding: 1.5rem;
    }

    .vehicle-pricing {
        flex-direction: column;
    }

    .book-driver-form-wrap {
        padding: 1.5rem;
    }
}
