/* ==========================================================================
   SIDETIME Excursions - EXACT MOCKUP MATCH THEME
   ========================================================================== */

:root {
    --text-dark: #1f2937;
    --text-gray: #4b5563;
    --color-green: #6ee7b7; 
    --color-green-dark: #34d399;
    --color-yellow: #fde047; 
    --card-bg: rgba(255, 255, 255, 0.65); /* Glassmorphism card bg */
    --card-border: rgba(255, 255, 255, 0.8);
    --border-radius-lg: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Montserrat', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: linear-gradient(180deg, #c4ecec 0%, #e8f5e9 40%, #fdf5e6 100%);
    background-attachment: fixed;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

/* Beautiful beach background */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=2000&q=80') center/cover no-repeat;
    opacity: 0.65;
    z-index: -1;
}

/* Sidebar CSS */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 9999;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 25px 20px;
    box-shadow: -5px 0 30px rgba(0,0,0,0.15);
}
.mobile-sidebar.active {
    right: 0;
}
.sidebar-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    display: none;
}
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 15px;
    margin-bottom: 25px;
}
.close-sidebar {
    font-size: 26px;
    cursor: pointer;
    color: #1f2937;
}
.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.sidebar-links a {
    text-decoration: none;
    color: #1f2937;
    font-size: 18px;
    font-weight: 700;
    transition: color 0.2s;
}
.sidebar-links a:hover {
    color: var(--color-green-dark);
}

.mobile-layout {
    width: 100%;
    max-width: 1100px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: relative; /* For absolute header */
    padding-bottom: 80px; /* Space for the floating footer */
}

@media (min-width: 1101px) {
    .mobile-layout {
        margin: 20px auto;
        border-radius: 30px;
        box-shadow: 0 15px 50px rgba(0,0,0,0.1);
        min-height: calc(100vh - 40px);
    }
}

/* Header */
.header {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 10;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    height: 50px;
}

.logo-img {

    width: 150px;
}

/* Desktop Menu */
.desktop-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.desktop-menu a {
    text-decoration: none;
    color: white; /* Changed to white because header is over dark image */
    font-weight: 700;
    font-size: 15px;
    transition: color 0.2s;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.desktop-menu a:hover {
    color: var(--color-green);
}

.btn-book-now {
    background: var(--color-yellow) !important;
    padding: 10px 24px !important;
    border-radius: 20px !important;
    color: #713f12 !important;
    box-shadow: 0 4px 10px rgba(253, 224, 71, 0.4);
    text-shadow: none !important;
}

/* Header Right Area */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-hamburger {
    font-size: 32px;
    cursor: pointer;
    color: white; /* White hamburger icon over image */
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    display: none;
}

/* Fix Gtranslate */
.gtranslate_wrapper {
    display: inline-flex !important;
    gap: 6px !important;
    align-items: center !important;
    background: rgba(255,255,255,0.85); /* Slightly more opaque */
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.gtranslate_wrapper a {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: transform 0.2s;
}

.gtranslate_wrapper a:hover {
    transform: scale(1.1);
}

.gtranslate_wrapper img {
    vertical-align: middle !important;
}

@media (max-width: 768px) {
    .desktop-menu { display: none; }
    .mobile-hamburger { display: block; }
    .header { padding: 15px 20px; }
}

/* Hero Section */
.hero-banner {
    margin: 0;
    /* User wanted a gradient fade instead of a border-radius */
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.5)), url('resimler/8798631-blue-lagoon-side-antic-city-boat-tour.webp') center/cover;
    padding: 120px 20px 80px 20px;
    text-align: center;
    color: white;
    position: relative;
    transition: background-image 1s ease-in-out;
}

.hero-content h1 {
    font-size: 32px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 0;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Special Services Row */
.special-pages-row {
    display: flex;
    gap: 12px;
    padding: 0 20px;
    margin-top: -30px;
    margin-bottom: 25px;
    position: relative;
    z-index: 10;
}
.special-page-btn {
    flex: 1;
    height: 90px;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.2s;
}
.special-page-btn:active {
    transform: scale(0.95);
}
.special-page-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.8) 100%);
}
.special-page-content {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 12px;
    color: white;
}
.special-page-title {
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    line-height: 1.2;
    padding: 0 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Carousel Buttons */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #374151;
    font-size: 16px;
    transition: all 0.2s;
}
.carousel-btn:hover {
    background: #10b981;
    color: white;
    border-color: #10b981;
}
.carousel-btn.left { left: -12px; }
.carousel-btn.right { right: -12px; }

/* Category Filters */
.special-page-btn {
    flex: 1;
    height: 90px;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0,0,0,0.06);
    transition: transform 0.2s;
}
.special-page-btn:active {
    transform: scale(0.95);
}
.special-page-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.8) 100%);
}
.special-page-content {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 12px;
    color: white;
}
.special-page-title {
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    line-height: 1.2;
    padding: 0 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Category Filters */
.categories-section {
    padding: 0px 20px 20px 20px;
}

.section-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.section-title span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-gray);
    cursor: pointer;
}

.categories-carousel {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 15px;
    scrollbar-width: none;
}
.categories-carousel::-webkit-scrollbar { display: none; }

.category-pill {
    flex: 0 0 105px;
    height: 125px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 12px 8px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    border: none;
}

.category-pill:hover, .category-pill.active {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(16, 185, 129, 0.3);
}

.category-overlay {
    position: absolute;
    top:0; left:0; right:0; bottom:0;
    background: linear-gradient(to top, rgba(0, 30, 60, 0.85) 0%, rgba(0, 30, 60, 0) 100%);
    z-index: 1;
}

.category-pill .pill-label {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* Tours Grid */
.tours-section {
    padding: 0 20px;
}

.tours-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

@media (max-width: 900px) {
    .tours-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* Exact Card Match */
.tour-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    padding: 15px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.tour-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 15px;
}

.tour-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.tour-desc {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.tour-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.tour-duration {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dark);
}

.tour-duration i {
    font-size: 16px;
}

.tour-price {
    text-align: right;
    line-height: 1.2;
}

.tour-price b {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
}

.tour-price span {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-gray);
    display: block;
}

.btn-details {
    width: 100%;
    border-radius: 14px;
    padding: 14px;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-details:hover {
    transform: translateY(-2px);
}

.btn-premium {
    background: #1e293b; /* Premium Dark Slate */
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(30, 41, 59, 0.15);
}

.btn-premium:hover {
    background: #0f172a;
}

/* Sticky Mobile Footer EXACTLY matching premium native style */
.footer-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    justify-content: space-around;
    align-items: center;
    /* iOS Safe area padding so there is no gap at the bottom */
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom)) 0; 
    z-index: 1000;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.03);
}

@media (min-width: 1101px) {
    .footer-sticky {
        display: none;
    }
}

.footer-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #94a3b8; /* Sophisticated Slate Gray */
    text-decoration: none;
    font-size: 10px;
    font-weight: 800;
    gap: 4px;
    flex: 1;
    transition: color 0.2s;
}

.footer-nav-item i {
    font-size: 24px;
}

.footer-nav-item.active-home {
    color: #0f172a; /* Almost black/dark navy for active tab */
}

.whatsapp-btn-sticky {
    color: #25D366; /* Authentic WhatsApp Green */
}

.whatsapp-btn-sticky i {
    font-size: 26px; /* Slightly larger for emphasis */
}

.location-btn-sticky {
    color: #94a3b8;
}

.location-btn-sticky:hover {
    color: #0f172a;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px;
    background: rgba(255,255,255,0.5);
    border-radius: var(--border-radius-lg);
    border: 2px dashed rgba(0,0,0,0.1);
    grid-column: 1 / -1;
}

/* Fix SweetAlert Mobile Fullscreen padding */
.swal2-container {
    padding: 0 !important;
}

.swal2-popup.premium-popup {
    border-radius: 0 !important;
    background: #ffffff !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.swal2-html-container {
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
}

@media (min-width: 768px) {
    .swal2-popup.premium-popup {
        border-radius: 24px !important;
        height: 90vh !important;
        max-width: 600px !important;
        margin: auto !important;
    }
}

@keyframes blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}
