/* =========================================
   BODRUM OTOGAR - CSS STYLES
   ========================================= */

/* Variables */
:root {
    /* Colors */
    --primary: #377cc1;
    --primary-light: #f8f8f8;
    --secondary: #e9d8a6;
    --accent: #5816d1;
    --dark: #050000;
    --light: #f5f9f8;
    --text: #222222;
    --text-light: #555555;

    /* Gradients */
    --gradient-ocean: linear-gradient(135deg, #1e90ff 0%, #00bfff 100%);
    --gradient-text: linear-gradient(135deg, #1e90ff 0%, #00bfff 100%);

    /* Shadows & Glass */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);

    /* Layout */
    --container-max: 1200px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 2rem);
}

.section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--light);
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-ocean);
    color: white;
    box-shadow: 0 10px 20px rgba(30, 144, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(30, 144, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-links a,
.navbar.scrolled .hamburger i {
    color: var(--dark);
}

.navbar.scrolled .logo span {
    background: var(--primary);
    color: white;
}

.nav-container {
    width: 100%;
    padding: 0 2rem 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: clamp(1.3rem, 1.5vw, 1.8rem);
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.logo span {
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 8px;
    font-weight: 600;
    margin-left: 6px;
    font-size: clamp(1.5rem, 1.8vw, 2.2rem);
    backdrop-filter: blur(4px);
}


.nav-links {
    display: flex;
    gap: clamp(0.8rem, 1.8vw, 2.5rem);
}

.nav-links a {
    color: white;
    font-weight: 500;
    font-size: clamp(0.78rem, 1vw, 1.05rem);
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-light);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 300px;
    background: white;
    box-shadow: var(--shadow-md);
    border-radius: 12px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    color: var(--dark) !important;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    font-size: 0.95rem;
    white-space: nowrap;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background: rgba(0, 95, 115, 0.05);
}

.dropdown-menu img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Desktop: short "Bodrum", mobile: full district name */
.nav-district-short {
    display: inline;
}

.nav-district-long {
    display: none;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: white;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    background-image: url('https://bodrumotogar.com/pic/otobus_terminali.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, rgba(0, 18, 25, 0.85) 0%, rgba(0, 18, 25, 0) 100%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 18, 25, 0.5) 0%, rgba(0, 18, 25, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 800px;
    margin: 0;
    padding: 0 2rem 0 10%;
    color: white;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    animation: fadeInUp 1s ease-out;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    opacity: 0.7;
}

.hero-content .text-gradient {
    background: none;
    -webkit-text-fill-color: white;
    color: white;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.6));
}

.hero-content p {
    font-size: 1.05rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
    z-index: 10;
}

/* Titles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Glass Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.hover-lift::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-ocean);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.hover-lift:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    background: rgba(55, 124, 193, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.hover-lift:hover .card-icon {
    background: var(--primary);
    color: white;
}

.glass-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.glass-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.link-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.link-text i {
    transition: var(--transition);
}

.hover-lift:hover .link-text i {
    transform: translateX(5px);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.service-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: rgba(10, 147, 150, 0.2);
}

.service-item i {
    font-size: 2rem;
    color: var(--primary);
}

.service-item span {
    font-weight: 500;
    font-size: 1.05rem;
}

/* Split Layout Section */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-content h2 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    line-height: 1.2;
}

.alert-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 166, 43, 0.1);
    border-left: 4px solid var(--secondary);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.alert-box i {
    font-size: 2rem;
    color: #c77b00;
    background: white;
    border-radius: 50%;
    padding: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.alert-box strong {
    font-size: 1.2rem;
    color: var(--dark);
    display: block;
    margin-bottom: 0.3rem;
}

.alert-box p {
    color: var(--text-light);
    line-height: 1.5;
    margin-top: 0;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-list li {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.info-list i {
    font-size: 2.5rem;
    color: var(--primary);
    background: rgba(55, 124, 193, 0.1);
    border-radius: 50%;
    padding: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.info-list strong {
    font-size: 1.3rem;
    color: var(--dark);
    display: block;
    margin-bottom: 0.5rem;
}

.info-list p {
    color: var(--text-light);
    line-height: 1.6;
    margin-top: 0.2rem;
}

/* Glass Panel (Hours) */
.glass-panel {
    background: var(--gradient-ocean);
    border-radius: 24px;
    padding: 3rem;
    color: white;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.glass-panel h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.hours-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hour-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hour-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hour-icon {
    font-size: 2rem;
    background: white;
    color: var(--primary);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.hour-info h4 {
    font-size: 1.2rem;
    font-weight: 600;
}

.hour-info span {
    font-size: 0.95rem;
    opacity: 0.9;
}

.payment-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 1.2rem;
    border-radius: 12px;
}

.payment-info i {
    font-size: 1.8rem;
    color: var(--secondary);
}

.payment-info p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.kent-kart-link {
    color: #ffb703;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    padding: 0 4px;
    transition: var(--transition);
    background: rgba(255, 183, 3, 0.1);
    border-radius: 4px;
}

.kent-kart-link:hover {
    color: #ffd166;
    background: rgba(255, 183, 3, 0.2);
    text-decoration: none;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 5rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--primary-light);
}

.footer-map-container h4,
.footer-social h4,
.footer-contact h4,
.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-20px) translateX(-50%);
    }

    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        padding: 0 2rem;
    }

    .hero-content h1 {
        font-size: 4rem;
    }

    .split-layout {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1024px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        text-align: left;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: var(--transition);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        max-height: calc(100vh - 100%);
        overflow-y: auto;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links>li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links>li:last-child {
        border-bottom: none;
    }

    .nav-links>li>a {
        color: var(--dark);
        display: block;
        padding: 0.8rem 1rem; /* More balanced padding with lines */
        text-align: left;
        font-size: 1.15rem;
    }

    .nav-links a::after {
        display: none;
    }

    .hamburger {
        display: block;
    }

    /* Mobile: show full district name, hide short */
    .nav-district-short {
        display: none;
    }

    .nav-district-long {
        display: inline;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(55, 124, 193, 0.03);
        padding: 0.2rem 0; /* Reduced padding as links have lines */
        margin-top: 0.5rem;
        margin-left: 1.5rem;
        border-left: 2px solid rgba(55, 124, 193, 0.2);
        display: none;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        border-radius: 0 12px 12px 0;
    }

    .dropdown.expanded .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        justify-content: flex-start;
        padding: 12px 20px;
        font-size: 0.95rem;
        color: var(--text-light) !important;
        border-bottom: 1px solid rgba(55, 124, 193, 0.05);
    }

    .dropdown-menu a:last-child {
        border-bottom: none;
    }

    .dropdown-menu a i {
        font-size: 1.1rem;
        color: var(--primary);
    }

    /* Rotate arrow when menu expanded */
    .dropdown.expanded > a i.ph-caret-down {
        transform: rotate(180deg);
    }

    .dropdown > a i.ph-caret-down {
        transition: transform 0.3s ease;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 40px 1.5rem 0;
        align-items: flex-start;
        text-align: left;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem !important;
    }

    .footer-bottom-inner p {
        text-align: center !important;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ===== SUBPAGE: BUS COMPANIES ===== */

/* --- Hero --- */
.page-hero {
    position: relative;
    height: 540px;
    background-size: cover;
    background-position: center 40%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 3rem;
    padding-top: 70px;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 12, 20, 0.70) 0%,
            rgba(0, 12, 20, 0.40) 50%,
            rgba(0, 12, 20, 0.15) 100%);
}

.page-hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 0 6%;
    color: white;
    text-align: left;
}

.page-hero-title {
    font-size: clamp(1.3rem, 3vw, 2.2rem);
    font-weight: 600;
    line-height: 1.2;
    margin: 0.5rem 0 0.8rem;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.5);
}

.page-hero-sub {
    font-size: 1rem;
    opacity: 0.85;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    text-align: left;
    justify-content: flex-start;
}

/* --- Intro Info Cards --- */
.intro-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.intro-card {
    background: white;
    border-radius: 14px;
    padding: 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text);
}

.intro-icon {
    font-size: 1.6rem;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

/* --- Gallery 3Ã—33% --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.8rem;
    margin-bottom: 2.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: zoom-in;
    aspect-ratio: 16/10;
    background: #ddd;
}

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

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s;
    color: white;
    font-size: 2rem;
    opacity: 0;
}

.gallery-item:hover .gallery-overlay {
    background: rgba(0, 0, 0, 0.35);
    opacity: 1;
}

/* --- Section title --- */
.section-title-sm {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
    display: inline-block;
}

/* --- Offices Grid --- */
.offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.2rem;
    margin-bottom: 3rem;
}

.office-card {
    padding: 1.2rem 1.5rem;
    border-radius: 14px;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    transition: var(--transition);
}

.office-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.office-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}

.office-number {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    background: rgba(0, 103, 149, 0.08);
    padding: 3px 10px;
    border-radius: 20px;
}

.office-platform {
    font-size: 0.78rem;
    color: var(--text-light);
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 8px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.office-companies {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 0.8rem;
    line-height: 1.55;
}

.office-phones {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 0.2s;
}

.phone-link:hover {
    color: var(--primary-dark);
}

/* --- Online Booking / Live Tracking Standalone Card --- */
.obilet-standalone-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 3rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.obilet-standalone-header {
    background: rgba(0, 103, 149, 0.06);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.obilet-standalone-body {
    padding: 2.5rem 2rem;
}

.obilet-standalone-btns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
}

.obilet-standalone-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 19px;
    /* adjusted for 1px border */
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.obilet-standalone-btn:hover {
    background: white;
    color: var(--dark);
    border: 1px solid var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

/* --- Baggage Section --- */
.baggage-section {
    background: white;
    border-radius: 18px;
    padding: 2rem 2.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    margin-top: 1rem;
}

.baggage-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.baggage-icon {
    font-size: 2rem;
    color: var(--primary);
}

.baggage-header h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.baggage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.baggage-rule {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.baggage-rule-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.baggage-rule-icon.green {
    background: rgba(22, 163, 74, 0.12);
    color: #16a34a;
}

.baggage-rule-icon.blue {
    background: rgba(37, 99, 235, 0.10);
    color: #2563eb;
}

.baggage-rule-icon.red {
    background: rgba(220, 38, 38, 0.10);
    color: #dc2626;
}

.baggage-rule strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.3rem;
}

.baggage-rule p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.55;
    margin: 0;
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .page-hero {
        height: 420px;
        padding-bottom: 2rem;
    }

    .page-hero-title {
        font-size: 1.5rem;
    }

    .page-hero-content {
        padding: 0 1.5rem;
    }

    .intro-cards {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .offices-grid {
        grid-template-columns: 1fr;
    }

    .baggage-grid {
        grid-template-columns: 1fr;
    }

    .baggage-section {
        padding: 1.5rem;
    }
}

/* Lightbox */
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    cursor: default;
    user-select: none;
}

#lightbox.active {
    display: flex;
}

.lightbox-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
    z-index: 10001;
}

.lightbox-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.lightbox-btn:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.lightbox-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: grab;
}

.lightbox-content:active {
    cursor: grabbing;
}

#lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.1s ease-out;
    transform-origin: center;
    pointer-events: none;
    will-change: transform;
}

#lightbox.zoomed #lightbox-img {
    max-width: none;
    max-height: none;
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    pointer-events: none;
}

/* Dolmuş List Page Styles */
.controls-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    box-shadow: var(--shadow-sm);
}

.search-box {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 1.5rem;
    font-size: 1.4rem;
    color: var(--primary);
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: white;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 95, 115, 0.1);
}

.sort-buttons {
    display: flex;
    gap: 0.8rem;
}

.sort-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-family: inherit;
}

.sort-btn i {
    font-size: 0.8rem;
}

.sort-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.found-count {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

.found-count span {
    color: var(--primary);
    font-weight: 600;
}

.dolmus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1rem;
}

.dolmus-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.dolmus-card:hover {
    transform: translateX(5px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    background: rgba(10, 147, 150, 0.02);
}

.d-no {
    background: var(--gradient-ocean);
    color: white;
    min-width: 85px;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 95, 115, 0.2);
}

.d-route {
    flex: 1;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
    line-height: 1.4;
}

.d-arrow {
    color: var(--primary-light);
    font-size: 1.2rem;
    opacity: 0.3;
    transition: var(--transition);
}

.dolmus-card:hover .d-arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* Mobile Adjustments for Dolmuş Page */
@media (max-width: 768px) {
    .controls-card {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1.2rem;
    }

    .dolmus-grid {
        grid-template-columns: 1fr;
    }

    .search-box input {
        padding: 0.8rem 1rem 0.8rem 3rem;
        font-size: 0.95rem;
    }
}

/* Comparison Table for Dolmuş Page */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.comparison-table th {
    background: var(--primary);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text);
    font-size: 0.95rem;
    vertical-align: top;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr td:first-child {
    background: rgba(0, 95, 115, 0.03);
    color: var(--primary);
    width: 25%;
}

.comparison-table tr td:nth-child(2) {
    width: 37.5%;
}

.comparison-table tr td:nth-child(3) {
    width: 37.5%;
}

@media (max-width: 768px) {
    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.8rem;
    }

    .comparison-table tr td:first-child {
        width: 30%;
    }
}

/* Dolmuş Cards & Route Numbers */
.dolmus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
    gap: 1.2rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.dolmus-card {
    background: white;
    border-radius: 16px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    text-decoration: none;
    color: inherit !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
}

.dolmus-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.d-no {
    width: 75px;
    height: 65px;
    background: var(--primary);
    color: white !important;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
    flex-shrink: 0;
    text-align: center;
    line-height: 0.9;
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.2);
    padding: 8px 4px;
    word-break: break-word;
    transition: all 0.3s ease;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.9;
}

.d-route {
    flex: 1;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
    font-size: 0.95rem;
    overflow-wrap: break-word;
    word-break: break-word;
}

.d-arrow {
    color: var(--text-light);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.dolmus-card:hover .d-arrow {
    transform: translateX(4px);
    color: var(--primary);
}

.dolmus-card:hover .d-no {
    background: #187bcd;
    box-shadow: 0 6px 15px rgba(30, 144, 255, 0.4);
}

/* Google Ads Optimization */
ins.adsbygoogle {
    background: transparent !important;
    text-decoration: none !important;
    display: block !important;
}

.ad-slot-container {
    width: 100%;
    margin: 20px auto;
    background: #f8fafc;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    min-height: 90px;
}

@media (max-width: 768px) {
    .ad-slot-container {
        min-height: 100px;
    }
}

/* --- Smart Assistant & Route Logic Mobile Overrides --- */
@media (max-width: 600px) {
    /* Akıllı Yolculuk Asistanı Header Fix */
    .premium-focus-card > div:first-child {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        padding: 8px 14px !important;
    }

    .premium-focus-card div[style*="font-size:11px"] {
        font-size: 8px !important;
    }

    .premium-focus-card div[style*="font-size:22px"] {
        font-size: 0.95rem !important;
        line-height: 1.3 !important;
        margin-top: 2px !important;
    }

    /* Result grid 2x2 -> 1x1 */
    .premium-focus-card > div:last-child {
        grid-template-columns: 1fr !important;
        padding: 8px !important;
        gap: 8px !important;
    }

    /* Internal result boxes padding and font reduction */
    .premium-focus-card div[style*="padding:20px"] {
        padding: 10px !important;
        border-radius: 12px !important;
        gap: 8px !important;
    }

    .premium-focus-card div[style*="font-size:18px"] {
        font-size: 14px !important;
    }

    .premium-focus-card .live-badge {
        align-self: flex-start !important;
        padding: 3px 8px !important;
        font-size: 9px !important;
    }

    /* Smart Stop Selection Area (Main Cards) */
    #interactive-panel .main-card {
        padding: 8px 6px !important;
        margin-bottom: 8px !important;
    }
    
    .yon_sec {
        padding: 5px 0 !important;
        font-size: 12px !important;
        opacity: 0.8;
    }
    
    .dir-btn {
        padding: 6px 4px !important; 
    }

    /* Weather card inside assistant */
    .premium-weather-card {
        padding: 10px 14px !important;
        margin-bottom: 10px !important;
    }
    
    .premium-weather-card div[style*="font-size:18px"] {
        font-size: 15px !important;
    }
    .premium-weather-card div[style*="font-size:40px"] {
        font-size: 32px !important;
    }

    /* Price boxes padding and fonts */
    .price-box {
        padding: 6px !important;
        gap: 8px !important;
    }
    .price-box div[style*="font-size:15px"] {
        font-size: 13px !important;
    }
}


@media (max-width: 480px) {
    /* Upcoming Trips (Bus List) Grid Optimization */
    .bus-list {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
        gap: 8px !important;
        margin-bottom: 25px !important;
    }

    .bus-item {
        padding: 10px 6px !important;
        border-radius: 12px !important;
    }

    /* Prevent "HAREKET SAATİ" etc. from breaking layout */
    .bus-item div[style*="font-size:9px"] {
        font-size: 8px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .bus-item div[style*="font-size:20px"] {
        font-size: 1.05rem !important;
    }
    
    .bus-item div[style*="font-size:11px"] {
        font-size: 10px !important;
    }
}


@media (max-width: 340px) {
    .bus-list {
        grid-template-columns: 1fr 1fr !important; /* Force exactly 2 columns on very narrow screens */
    }
}