/*!
 * Start Bootstrap - Modern Business HTML Template (http://startbootstrap.com)
 * Enhanced for Sri Lanka Navy Aqua Golf Driving Range
 * Official Theme Colors: Navy Blue (#001b44, #002868) & Golf Green (#549847, #3f7834)
 */

/* ========================================================
   GLOBAL STYLES & RESET
   ======================================================== */
html,
body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #2b303a;
    background-color: #f8fafc;
    -webkit-font-smoothing: antialiased;
}

body {
    padding-top: 60px; /* Space for fixed navbar */
}

a {
    color: #549847;
    transition: all 0.25s ease;
}

a:hover, a:focus {
    color: #3f7834;
    text-decoration: none;
}

/* Page Headers */
.page-header {
    border-bottom: 2px solid #e2e8f0;
    margin: 20px 0 25px 0;
    padding-bottom: 10px;
    color: #001b44;
    font-weight: 700;
}

/* Breadcrumb Styling */
.breadcrumb {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 13px;
}

.breadcrumb > .active {
    color: #549847;
    font-weight: 600;
}

/* ========================================================
   NAVIGATION BAR (NAVY & GOLF THEME)
   ======================================================== */
.navbar-inverse {
    background-color: #001b44;
    border-color: transparent;
    border-bottom: 3px solid #549847;
    box-shadow: 0 4px 15px rgba(0, 27, 68, 0.25);
    min-height: 60px;
}

.navbar-inverse .navbar-collapse {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Custom Navbar Brand */
.nav-brand-custom {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    height: 60px;
    text-decoration: none;
}

.nav-brand-img {
    height: 40px;
    width: auto;
    margin-right: 10px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.nav-brand-title {
    color: #ffffff !important;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Navbar Links */
.navbar-inverse .navbar-nav > li > a {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 14px;
    padding: 20px 14px;
    transition: all 0.2s ease;
}

.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
    color: #ffffff;
    background-color: rgba(84, 152, 71, 0.2);
}

.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus {
    color: #ffffff;
    background-color: #549847;
}

/* Dropdown Menu */
.navbar-inverse .dropdown-menu {
    background-color: #001b44;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 3px solid #549847;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    border-radius: 0 0 8px 8px;
    padding: 6px 0;
}

.navbar-inverse .dropdown-menu > li > a {
    color: #e2e8f0;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 500;
}

.navbar-inverse .dropdown-menu > li > a:hover {
    background-color: #549847;
    color: #ffffff;
}

/* Prominent Booking CTA in Navbar */
.nav-item-book {
    display: flex;
    align-items: center;
    padding: 10px 10px;
}

.nav-btn-book {
    background: #549847 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 8px 18px !important;
    border-radius: 50px !important;
    box-shadow: 0 3px 10px rgba(84, 152, 71, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
}

.nav-btn-book:hover,
.nav-btn-book:focus {
    background: #438237 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(84, 152, 71, 0.65) !important;
}

/* Mobile Top Booking Button (Next to burger icon) */
.btn-booking-mobile-top {
    float: right;
    margin: 12px 10px 12px 0;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    background-color: #549847;
    color: #ffffff !important;
    border-radius: 20px;
    border: none;
    box-shadow: 0 2px 8px rgba(84, 152, 71, 0.5);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-booking-mobile-top:hover {
    background-color: #438237;
    color: #ffffff;
}

.navbar-toggle {
    margin-top: 13px;
    margin-bottom: 13px;
    border-color: rgba(255, 255, 255, 0.2);
}

.navbar-toggle:hover,
.navbar-toggle:focus {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ========================================================
   CAROUSEL / HERO SECTION
   ======================================================== */
header.carousel {
    height: 460px;
    position: relative;
    background-color: #001b44;
}

header.carousel .item,
header.carousel .item.active,
header.carousel .carousel-inner {
    height: 100%;
}

header.carousel .fill {
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
}

/* Overlay gradient on carousel */
header.carousel .item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 27, 68, 0.2) 0%, rgba(0, 27, 68, 0.6) 100%);
    pointer-events: none;
}

/* ========================================================
   HERO QUICK BOOKING ACTION BAR (Direct below Carousel)
   ======================================================== */
.booking-hero-cta-bar {
    background: linear-gradient(135deg, #001b44 0%, #002c6d 100%);
    border-bottom: 3px solid #549847;
    padding: 22px 0;
    margin-bottom: 30px;
    box-shadow: 0 6px 20px rgba(0, 27, 68, 0.15);
}

.cta-flex-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(84, 152, 71, 0.25);
    color: #a7f3d0;
    border: 1px solid rgba(84, 152, 71, 0.4);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.cta-title {
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 6px 0;
    letter-spacing: -0.3px;
}

.cta-subtitle {
    color: #cbd5e1;
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}

.cta-btn-col {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-hero-book {
    background: #549847;
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 4px 14px rgba(84, 152, 71, 0.4);
    transition: all 0.25s ease;
    border: none;
    text-decoration: none;
}

.btn-hero-book .btn-main-txt {
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.btn-hero-book .btn-sub-txt {
    font-size: 11px;
    color: #dcfce7;
    font-weight: 500;
    margin-top: 2px;
}

.btn-hero-book:hover {
    background: #427c36;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(84, 152, 71, 0.6);
}

.btn-hero-rates {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.btn-hero-rates:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* ========================================================
   MODERN FEATURE CARDS (AIM, CHARGES, LOCATION)
   ======================================================== */
.features-row {
    margin-top: 10px;
    margin-bottom: 30px;
}

.golf-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

.golf-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.golf-card-header {
    background: linear-gradient(135deg, #001b44 0%, #002868 100%);
    border-bottom: 3px solid #549847;
    color: #ffffff;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.golf-card-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.golf-card-header .header-logo {
    height: 28px;
    width: auto;
    opacity: 0.9;
}

.golf-card-body {
    padding: 20px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.golf-card-body p {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

.golf-card-img-wrap {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    background-color: #f1f5f9;
}

.golf-card-img-wrap img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.golf-card:hover .golf-card-img-wrap img {
    transform: scale(1.03);
}

.golf-card-footer {
    padding: 14px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* Rates Mini Table in Home Card */
.rates-preview-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.rates-preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 13px;
}

.rates-preview-item:last-child {
    border-bottom: none;
}

.rates-preview-name {
    color: #334155;
    font-weight: 500;
}

.rates-preview-price {
    color: #549847;
    font-weight: 700;
    background: #ecfdf5;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* Card Buttons */
.btn-card-book {
    background-color: #549847;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 15px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: none;
    box-shadow: 0 2px 6px rgba(84, 152, 71, 0.3);
}

.btn-card-book:hover {
    background-color: #427c36;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.btn-card-more {
    background-color: #f1f5f9;
    color: #001b44 !important;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-card-more:hover {
    background-color: #e2e8f0;
    color: #001b44 !important;
}

/* ========================================================
   CHARGES & RATES PAGE ENHANCEMENTS
   ======================================================== */
.booking-callout-hero {
    background: linear-gradient(135deg, #001b44 0%, #002868 100%);
    border-left: 5px solid #549847;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 27, 68, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.booking-callout-content {
    flex: 1 1 300px;
}

.booking-callout-content h3 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 8px 0;
}

.booking-callout-content p {
    color: #cbd5e1;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.btn-booking-big {
    background: #549847;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 13px 28px;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(84, 152, 71, 0.5);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-booking-big:hover {
    background: #427c36;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(84, 152, 71, 0.7);
}

/* Modern Tab Navigation */
.nav-tabs-custom {
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 25px;
}

.nav-tabs-custom > li > a {
    color: #64748b;
    font-weight: 700;
    font-size: 14px;
    border-radius: 8px 8px 0 0;
    padding: 12px 20px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.nav-tabs-custom > li > a:hover {
    background-color: #f1f5f9;
    color: #001b44;
}

.nav-tabs-custom > li.active > a,
.nav-tabs-custom > li.active > a:hover,
.nav-tabs-custom > li.active > a:focus {
    color: #001b44;
    background-color: #ffffff;
    border-color: #e2e8f0 #e2e8f0 transparent;
    border-top: 3px solid #549847;
}

/* Category & Fee Pricing Card */
.pricing-category-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 30px;
}

.pricing-category-header {
    background: linear-gradient(135deg, #001b44 0%, #002868 100%);
    border-bottom: 3px solid #549847;
    color: #ffffff;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.pricing-category-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-category-header .badge-highlight {
    background-color: #549847;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-category-body {
    padding: 24px;
}

.pricing-category-body p.lead-desc {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Category / Details - Fee Table (Direct match to bookmysport) */
.table-pricing-custom {
    width: 100%;
    margin-bottom: 18px;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.table-pricing-custom thead th {
    background-color: #f1f5f9;
    color: #001b44;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 13px 18px;
    border-bottom: 2px solid #cbd5e1;
}

.table-pricing-custom thead th:last-child {
    text-align: right;
}

.table-pricing-custom tbody td {
    padding: 14px 18px;
    font-size: 14px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.table-pricing-custom tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.table-pricing-custom tbody tr:hover {
    background-color: #f0fdf4;
}

.table-pricing-custom tbody td:last-child {
    text-align: right;
}

.fee-badge-highlight {
    background-color: #ecfdf5;
    color: #15803d;
    border: 1px solid #bbf7d0;
    font-size: 15px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 6px;
    display: inline-block;
    white-space: nowrap;
}

.pricing-table-footnote {
    font-size: 13px;
    color: #64748b;
    font-style: italic;
    background: #f8fafc;
    border-left: 3px solid #549847;
    padding: 10px 14px;
    border-radius: 0 6px 6px 0;
    margin-top: 10px;
    margin-bottom: 20px;
}

.pricing-action-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

.btn-pricing-book {
    background-color: #549847;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    padding: 11px 24px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 10px rgba(84, 152, 71, 0.4);
    border: none;
    transition: all 0.25s ease;
}

.btn-pricing-book:hover {
    background-color: #427c36;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(84, 152, 71, 0.6);
}

/* Info Alert Boxes (Guidelines / Dress Code) */
.info-box-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.info-box-card h4 {
    color: #001b44;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-box-card ul {
    margin: 0;
    padding-left: 20px;
    color: #475569;
    font-size: 13px;
    line-height: 1.6;
}

/* ========================================================
   RESPONSIVE IMAGE GALLERY
   ======================================================== */
.responsive-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 15px;
    margin-bottom: 30px;
}

.gallery-grid-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background-color: #e2e8f0;
}

.gallery-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.gallery-grid-item:hover img {
    transform: scale(1.08);
}

/* ========================================================
   SITE FOOTER (NAVY BLUE & CLEAN RESPONSIVE)
   ======================================================== */
footer.site-footer-custom {
    background-color: #001b44;
    color: #cbd5e1;
    border-top: 4px solid #549847;
    padding: 35px 0 25px 0;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    height: 44px;
    width: auto;
}

.footer-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.footer-sub {
    color: #94a3b8;
    font-size: 12px;
    margin: 0;
}

.footer-quick-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-quick-links a {
    color: #cbd5e1;
    font-size: 13px;
    text-decoration: none;
}

.footer-quick-links a:hover {
    color: #86efac;
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 18px;
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
}

.footer-bottom-bar strong {
    color: #e2e8f0;
}

/* ========================================================
   MOBILE FLOATING BOOKING BAR (TAP TO BOOK ANYTIME)
   ======================================================== */
.mobile-floating-booking-bar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1040;
    display: none;
}

.mobile-floating-btn {
    background: #549847;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding: 12px 20px;
    border-radius: 50px;
    border: 2px solid #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.mobile-floating-btn:hover,
.mobile-floating-btn:focus {
    background: #3f7834;
    color: #ffffff !important;
    transform: scale(1.04);
}

/* ========================================================
   RESPONSIVE MEDIA QUERIES (MOBILE OPTIMIZATION)
   ======================================================== */
@media (max-width: 991px) {
    header.carousel {
        height: 380px;
    }
    
    .cta-flex-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cta-btn-col {
        width: 100%;
        margin-top: 10px;
    }
}

@media (max-width: 767px) {
    body {
        padding-top: 60px;
    }

    /* Show floating booking bar on small devices */
    .mobile-floating-booking-bar {
        display: block;
    }

    header.carousel {
        height: 270px;
    }

    .nav-brand-title {
        font-size: 14px;
    }

    .cta-title {
        font-size: 18px;
    }

    .cta-subtitle {
        font-size: 13px;
    }

    .btn-hero-book {
        width: 100%;
        text-align: center;
        align-items: center;
    }

    .btn-hero-rates {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .booking-callout-hero {
        padding: 18px;
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-booking-big {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .pricing-category-header {
        padding: 14px 16px;
    }

    .pricing-category-body {
        padding: 16px;
    }

    .table-pricing-custom thead th,
    .table-pricing-custom tbody td {
        padding: 10px 12px;
        font-size: 13px;
    }

    .fee-badge-highlight {
        font-size: 13px;
        padding: 4px 8px;
    }

    .pricing-action-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-pricing-book {
        width: 100%;
        justify-content: center;
    }

    .responsive-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
        gap: 8px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}
