/* ============================================
   Antalya Airport Transfer - Common Styles
   ============================================ */

:root {
    --primary-color: #f8b400;
    --secondary-color: #1a1a1a;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --border-color: #ddd;
    --success-color: #4CAF50;
    --error-color: #f44336;
    --white: #fff;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-gray);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--secondary-color);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* ============================================
   Header & Navigation
   ============================================ */

.top-bar {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-info a {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-links a {
    color: var(--white);
    font-size: 16px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Language Selector */
.language-selector select {
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.3);
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 13px;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.language-selector select:hover {
    background-color: rgba(255,255,255,0.2);
}

.language-selector select option {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Main Navigation */
.main-nav {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    order: 1;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
    order: 3;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none; /* Hidden by default, shown on mobile */
    background: none;
    border: none;
    font-size: 24px;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    order: 2;
    z-index: 1002;
}

.mobile-menu-toggle:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

/* ============================================
   Main Content
   ============================================ */

.main-content {
    padding: 40px 0 60px;
}

.page-title {
    text-align: center;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-size: 32px;
}

.page-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 16px;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 25px;
    min-height: 44px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: #e6a200;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: #f1f1f1;
    color: #555;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

/* ============================================
   Cards
   ============================================ */

.card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   Forms
   ============================================ */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    min-height: 44px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(248, 180, 0, 0.2);
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.form-row .form-group {
    flex: 1;
    min-width: 250px;
    margin: 0 10px 20px;
}

/* ============================================
   Price Display
   ============================================ */

.price-display {
    background-color: var(--light-gray);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin: 25px 0;
    text-align: center;
    border: 1px dashed var(--border-color);
    display: none;
}

.price-display.active {
    display: block;
}

.price-content-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.price-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.price-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0;
}

.payment-type {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
    margin-left: 8px;
}

.vehicle-and-action {
    display: flex;
    align-items: center;
    gap: 15px;
}

.vehicle-image {
    max-height: 60px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.price-next-btn {
    white-space: nowrap;
}

@media (max-width: 480px) {
    .price-content-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .vehicle-and-action {
        justify-content: space-between;
        width: 100%;
    }

    .vehicle-image {
        max-height: 48px;
    }

    .price-detail {
        font-size: 12px;
    }
}

/* Price Detail Info */
.price-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.price-detail {
    font-size: 11px;
    color: #888;
    font-weight: 400;
    white-space: nowrap;
}

.price-grid .price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.price-grid .price-item:last-child {
    border-bottom: none;
}

.price-grid .price-item:hover {
    background-color: var(--light-gray);
}

.price-grid .hotel-name {
    font-weight: 500;
    color: var(--text-color);
    flex: 1;
}

.price-grid .price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 18px;
}

/* ============================================
   Footer
   ============================================ */

footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

footer h3,
footer h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

footer p,
footer li {
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer li {
    margin-bottom: 8px;
}

footer a {
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 8px;
}

footer a:hover {
    color: var(--primary-color);
}

footer .social-links {
    margin-top: 15px;
}

footer .social-links a {
    color: var(--white);
    font-size: 20px;
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: #888;
    font-size: 13px;
}

/* ============================================
   Utility Classes
   ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        order: 2; /* Show between logo and nav-links */
    }

    .nav-container {
        position: relative;
    }

    .logo {
        order: 1;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        gap: 15px;
        z-index: 1001; /* Higher than main-nav */
        order: 3;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }

    .top-bar .container {
        justify-content: center;
        text-align: center;
    }

    .page-title {
        font-size: 24px;
    }

    .form-row .form-group {
        min-width: 100%;
    }

    .btn {
        width: 100%;
        padding: 14px 20px;
        min-height: 48px;
        font-size: 15px;
    }

    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }

    .page-title {
        font-size: 20px;
    }

    .page-subtitle {
        font-size: 14px;
    }

    .logo {
        font-size: 18px;
    }

    .price-amount {
        font-size: 24px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
    }
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* ============================================
   Map Styles
   ============================================ */

.map-container {
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#route-map {
    width: 100%;
    height: 300px;
    background-color: #e0e0e0;
}

.route-details {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px;
}

.route-detail-item {
    text-align: center;
    padding: 8px 15px;
    background: var(--light-gray);
    border-radius: 8px;
    min-width: 120px;
}

.route-detail-item i {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 18px;
}

.route-detail-item .detail-label {
    font-size: 12px;
    color: #666;
    display: block;
}

.route-detail-item .detail-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-color);
}

/* Leaflet map customizations */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
}

.leaflet-popup-content {
    margin: 12px;
    font-size: 14px;
}

.custom-marker {
    background-color: var(--primary-color);
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.pickup-marker {
    background-color: #4CAF50;
}

.dropoff-marker {
    background-color: #f44336;
}

/* Mobile map adjustments */
@media (max-width: 768px) {
    #route-map {
        height: 250px;
    }
    
    .route-details {
        padding: 10px;
    }
    
    .route-detail-item {
        min-width: 100px;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    #route-map {
        height: 200px;
    }
    
    .route-detail-item {
        min-width: 90px;
    }
}

/* ============================================
   Reservation Steps & Autocomplete
   ============================================ */

.form-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 15px;
    position: relative;
    min-width: 100px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #777;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
}

.step.active .step-number {
    background-color: var(--primary-color);
    color: #fff;
}

.step.completed .step-number {
    background-color: var(--success-color);
    color: #fff;
}

.form-container {
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 30px;
    margin-bottom: 30px;
}

.form-title {
    text-align: center;
    margin-bottom: 25px;
    color: var(--secondary-color);
    font-size: 24px;
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.location-container {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.location-box {
    flex: 1;
    min-width: 250px;
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    text-align: center;
    border: 1px solid #eee;
}

.location-box h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.autocomplete-container {
    position: relative;
    width: 100%;
}

.autocomplete-input-wrapper {
    position: relative;
    width: 100%;
}

.autocomplete-input {
    width: 100%;
    padding: 14px 18px 14px 45px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    font-size: 15px;
    transition: all 0.3s;
    outline: none;
}

.autocomplete-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(248, 180, 0, 0.15);
}

.autocomplete-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 16px;
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 2px solid var(--primary-color);
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    max-height: 350px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.autocomplete-results.show {
    display: block;
}

.autocomplete-item {
    padding: 12px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background: linear-gradient(135deg, var(--primary-color) 0%, #e6a200 100%);
    color: #fff;
}

.autocomplete-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.autocomplete-group-title {
    padding: 10px 18px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #eee;
}

.autocomplete-no-results {
    padding: 20px;
    text-align: center;
    color: #888;
    font-style: italic;
}

.swap-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.swap-btn:hover {
    background-color: #e6a200;
    transform: rotate(180deg);
}

.route-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.route-info-item {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
    font-size: 14px;
}

.route-info-item i {
    margin-right: 8px;
    color: var(--primary-color);
}

.route-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 25px;
}

.route-chip {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
}

.route-chip:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

/* ============================================
   Fixed Bottom Buttons
   ============================================ */

.fixed-bottom-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 15px;
    background-color: #1a1a1a;
    z-index: 9999;
}

.fixed-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.fixed-btn-phone {
    background-color: #fff;
    color: #333;
}

.fixed-btn-phone:hover {
    background-color: #f0f0f0;
    transform: scale(1.05);
}

.fixed-btn-whatsapp {
    background-color: #25D366;
    color: #fff;
}

.fixed-btn-whatsapp:hover {
    background-color: #128C7E;
    transform: scale(1.05);
}

.fixed-btn i {
    font-size: 18px;
}

@media (max-width: 768px) {
    .location-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .location-box {
        width: 100%;
        min-width: unset;
    }

    .swap-btn {
        transform: rotate(90deg);
        width: 50px;
        height: 50px;
    }

    .swap-btn:hover {
        transform: rotate(270deg);
    }

    .form-container {
        padding: 20px;
        margin: 0 10px 30px;
    }

    .autocomplete-input {
        padding: 16px 18px 16px 45px;
        font-size: 16px;
        min-height: 44px;
    }

    .btn {
        padding: 14px 25px;
        min-height: 44px;
        font-size: 16px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px;
        min-height: 44px;
        font-size: 16px;
    }

    .route-chip {
        padding: 10px 15px;
        font-size: 14px;
    }

    .step {
        min-width: 80px;
        margin: 0 8px;
    }

    .step-text {
        font-size: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .fixed-bottom-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 12px;
    }
    
    .fixed-btn {
        width: 100%;
        padding: 12px 15px;
        font-size: 13px;
        min-height: 44px;
    }

    .form-steps {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .step {
        min-width: 70px;
        margin: 0 5px;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .form-row {
        margin: 0 -5px;
    }

    .form-row .form-group {
        min-width: 100%;
        margin: 0 5px 15px;
    }
    
    .autocomplete-results {
        max-height: 200px;
    }

    .route-chips {
        gap: 8px;
    }

    .route-chip {
        font-size: 12px;
        padding: 8px 12px;
    }

    .form-navigation {
        flex-direction: column;
        gap: 10px;
    }

    .form-navigation .btn {
        width: 100%;
    }

    .fixed-bottom-buttons {
        padding: 12px 10px;
        gap: 10px;
    }

    .fixed-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .fixed-btn i {
        font-size: 16px;
    }
}

/* ============================================
   Discount Banner
   ============================================ */

.discount-banner {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    padding: 15px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    animation: slideDown 0.5s ease;
}

.discount-banner .discount-message {
    font-size: 16px;
    font-weight: 500;
}

.discount-banner .discount-badge-large {
    background: white;
    color: #4CAF50;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .top-bar,
    .main-nav,
    footer,
    .mobile-menu-toggle {
        display: none;
    }

    .main-content {
        padding: 0;
    }
}
