/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Kanit', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Colors */
:root {
    --primary-color: #ff6b35;
    --secondary-color: #f7931e;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --white: #ffffff;
    --gray: #7f8c8d;
    --success: #27ae60;
    --danger: #e74c3c;
}

/* Typography */
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-dark { color: var(--dark-color); }
.text-light { color: var(--light-color); }
.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-full {
    width: 100%;
}

.btn-small {
    padding: 8px 20px;
    font-size: 14px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    margin-right: 10px;
}

.brand-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 16px;
    border-radius: 25px;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
    transform: translateY(-2px);
}

.nav-link:active {
    transform: translateY(0);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)),
                url('../images/header.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(247, 147, 30, 0.05));
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--light-color);
    margin-bottom: 2rem;
}

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

/* Booking Form */
.booking-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.booking-form h3 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #e0e6ed;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

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

/* Distance and Fare Display - Updated to use blue theme */
.distance-fare-display {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    border: 2px solid #17a2b8;
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    font-size: 14px;
    transition: all 0.3s ease;
}

.distance-info, .fare-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0c5460;
    font-weight: 600;
}

.distance-info i, .fare-info i {
    color: #17a2b8;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Animation for distance calculation */
@keyframes calculatePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.distance-fare-display.calculating {
    animation: calculatePulse 1.5s ease-in-out infinite;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    margin-right: 10px;
}

.brand-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 16px;
    border-radius: 25px;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
    transform: translateY(-2px);
}

.nav-link:active {
    transform: translateY(0);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)),
                url('../images/header.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(247, 147, 30, 0.05));
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--light-color);
    margin-bottom: 2rem;
}

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

/* Booking Form */
.booking-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.booking-form h3 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #e0e6ed;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

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

/* Distance and Fare Display - Updated to use blue theme */
.distance-fare-display {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    border: 2px solid #17a2b8;
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    font-size: 14px;
    transition: all 0.3s ease;
}

.distance-info, .fare-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0c5460;
    font-weight: 600;
}

.distance-info i, .fare-info i {
    color: #17a2b8;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Animation for distance calculation */
@keyframes calculatePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.distance-fare-display.calculating {
    animation: calculatePulse 1.5s ease-in-out infinite;
}

/* Sections */
section {
    padding: 80px 0;
}

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

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

.section-description {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Services */
.services {
    background: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
}

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

.service-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* Fleet */
.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.fleet-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.fleet-card:hover {
    transform: translateY(-5px);
}

.fleet-image {
    position: relative;
    height: 250px;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fleet-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fleet-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fleet-card:hover .fleet-overlay {
    opacity: 1;
}

.fleet-info {
    display: flex;
    gap: 1rem;
}

.fleet-info span {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: var(--white);
    backdrop-filter: blur(10px);
}

.fleet-content {
    padding: 1.5rem;
}

.fleet-content h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.fleet-content p {
    color: var(--gray);
    margin-bottom: 1rem;
}

.fleet-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Pricing */
.pricing {
    background: var(--light-color);
}

.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.featured {
    border: 3px solid var(--primary-color);
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

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

.price {
    margin-bottom: 2rem;
}

.currency {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.period {
    font-size: 1rem;
    color: var(--gray);
}

.features {
    list-style: none;
    margin-bottom: 2rem;
}

.features li {
    padding: 0.5rem 0;
    color: var(--gray);
}

.features i {
    color: var(--success);
    margin-right: 0.5rem;
}

/* Contact */
.contact {
    background: var(--dark-color);
    color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--light-color);
    margin-bottom: 2rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--light-color);
    margin: 0;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.contact-form input,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--light-color);
}

/* Footer */
.footer {
    background: #1a252f;
    color: var(--light-color);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand .brand-text {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--light-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

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

/* Location Input Group */
.location-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.location-input-group input {
    flex: 1;
    padding-right: 50px;
}

.map-btn {
    position: absolute;
    right: 8px;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: white;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.map-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* Map Modal */
.map-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    padding: 20px 10px;
}

/* Mobile responsive adjustments */
@media (max-height: 700px) {
    .map-modal {
        padding: 10px 5px;
    }
    
    .map-modal-content {
        margin: 1% auto;
        max-height: calc(100vh - 20px);
    }
    
    .map-container {
        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.map-modal-content {
    background-color: var(--white);
    margin: 2% auto;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    overflow: hidden;
    position: relative;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.map-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e0e6ed;
    flex-shrink: 0;
}

.map-modal-header h3 {
    margin: 0;
    color: var(--dark-color);
    font-size: 1.3rem;
}

.map-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.map-modal-close:hover {
    color: var(--primary-color);
}

.map-search-container {
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid #e0e6ed;
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    position: relative; /* Important for autocomplete positioning */
}

.map-search-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e6ed;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    position: relative;
    z-index: 1;
}

.map-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Google Places Autocomplete dropdown styling for map search */
.map-modal .pac-container {
    z-index: 9999999 !important; /* Higher than modal z-index */
    background: white;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin-top: 2px;
    font-family: 'Inter', sans-serif;
}

/* Global pac-container z-index fix for all modals */
.pac-container {
    z-index: 9999999 !important;
}

.map-modal .pac-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.map-modal .pac-item:last-child {
    border-bottom: none;
}

.map-modal .pac-item:hover,
.map-modal .pac-item.pac-item-selected {
    background-color: #f8f9fa;
}

.map-modal .pac-item-query {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 14px;
}

.map-modal .pac-item .pac-item-query .pac-matched {
    color: var(--primary-color);
    font-weight: 700;
}

.map-modal .pac-item .pac-secondary-text {
    color: #666;
    font-size: 12px;
    margin-top: 2px;
}

.map-modal .pac-icon {
    background-image: none !important;
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

.map-modal .pac-icon::before {
    content: '\f3c5';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    font-size: 14px;
    line-height: 20px;
}

/* Ensure autocomplete doesn't interfere with modal positioning */
.map-modal-content {
    position: relative;
    z-index: 99998;
}

/* Search button styling */
.search-btn {
    background: var(--primary-color);
    border: none;
    border-radius: 10px;
    color: white;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

.search-btn:hover {
    background: var(--secondary-color);
}

/* Map container styling */
.map-container {
    width: 100% !important;
    height: 250px !important;
    min-height: 250px !important;
    max-height: 250px !important;
    flex: 1;
    display: block !important;
    visibility: visible !important;
    background: #f5f5f5;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

/* Ensure Google Maps fills the container properly */
.map-container > div {
    width: 100% !important;
    height: 100% !important;
}

/* Map modal footer */
.map-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e0e6ed;
    flex-shrink: 0;
    background: white;
    max-height: 200px;
    overflow-y: auto;
}

/* Selected location display */
.selected-location {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.selected-location.has-location {
    background: #e8f5e8;
    border-left-color: var(--success);
}

.selected-location strong {
    color: var(--dark-color);
    font-weight: 600;
}

#selected-address {
    color: #666;
    margin-left: 8px;
}

.selected-location.has-location #selected-address {
    color: var(--success);
    font-weight: 500;
}

/* Current location button container - now inline with action buttons */
.current-location-container {
    display: flex;
    flex: 1;
    justify-content: flex-start;
}

.btn-current-location {
    background: var(--success);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-current-location:hover {
    background: #218838;
    transform: translateY(-1px);
}

.btn-current-location:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.btn-current-location.loading {
    opacity: 0.7;
}

.btn-current-location.loading i {
    animation: spin 1s linear infinite;
}

/* Map modal buttons - now flex container to accommodate current location button */
.map-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.map-modal-buttons .btn-actions {
    display: flex;
    gap: 10px;
}

.map-modal-buttons .btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-outline {
    background: transparent;
    color: var(--gray);
    border: 2px solid #e0e6ed;
}

.btn-outline:hover {
    background: #f8f9fa;
    border-color: var(--gray);
}

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

.btn-primary:hover {
    background: var(--secondary-color);
}

.btn-primary:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Location Status Notification System */
.input-with-status {
    position: relative;
}

.location-status {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    margin-top: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.location-status.show {
    opacity: 1;
    transform: translateY(0);
}

.location-status.success {
    border-color: #28a745;
    background: #d4edda;
    color: #155724;
}

.location-status.error {
    border-color: #dc3545;
    background: #f8d7da;
    color: #721c24;
}

.location-status.warning {
    border-color: #ffc107;
    background: #fff3cd;
    color: #856404;
}

.location-status.info {
    border-color: #17a2b8;
    background: #d1ecf1;
    color: #0c5460;
}

.location-status i {
    font-size: 14px;
}

/* Fade out animation */
.location-status.fade-out {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.5s ease;
}

/* Enhanced loading animation */
.location-status.info i {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Loading state for search */
.search-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.search-btn.loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px 20px;
    min-width: 300px;
    max-width: 400px;
    animation: slideInNotification 0.3s ease;
}

@keyframes slideInNotification {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-success {
    border-left: 4px solid var(--success);
}

.notification-success i {
    color: var(--success);
}

.notification-error {
    border-left: 4px solid var(--danger);
}

.notification-error i {
    color: var(--danger);
}

.notification-info {
    border-left: 4px solid var(--primary-color);
}

.notification-info i {
    color: var(--primary-color);
}

/* Autocomplete Dropdown */
.pac-container {
    border-radius: 10px !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    margin-top: 5px !important;
    font-family: 'Kanit', sans-serif !important;
}

.pac-item {
    padding: 12px 16px !important;
    border-bottom: 1px solid #e0e6ed !important;
    cursor: pointer !important;
}

.pac-item:hover {
    background-color: var(--light-color) !important;
}

.pac-item:last-child {
    border-bottom: none !important;
}

.pac-matched {
    color: var(--primary-color) !important;
    font-weight: 600 !important;
}

/* Language Selector */
.language-selector {
    position: relative;
    z-index: 1000;
}

.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: var(--white);
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 90px;
    outline: none;
}

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

.language-btn .flag-icon {
    font-size: 16px;
}

.language-btn .fas {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.language-btn.active .fas {
    transform: rotate(180deg);
}

.language-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10000;
    margin-top: 5px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    pointer-events: none;
}

.language-options.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    color: var(--dark-color);
    font-size: 14px;
    background: white;
    border: none;
    width: 100%;
}

.language-option:hover {
    background: var(--light-color);
}

.language-option.active {
    background: var(--primary-color);
    color: white;
}

.language-option:first-child {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.language-option:last-child {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Mobile Language Selector */
@media (max-width: 768px) {
    .language-selector {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e0e6ed;
    }
    
    .language-btn {
        width: 100%;
        justify-content: center;
        background: var(--white);
        border: 2px solid #e0e6ed;
        color: var(--dark-color);
    }
    
    .language-options {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        margin-top: 10px;
    }
    
    .language-options.show {
        display: block;
    }
    
    .language-options:not(.show) {
        display: none;
    }
    
    .language-option {
        background: var(--white);
        border: 1px solid #e0e6ed;
        border-top: none;
        border-radius: 0;
    }
    
    .language-option:first-child {
        border-top: 1px solid #e0e6ed;
        border-radius: 10px 10px 0 0;
    }
    
    .language-option:last-child {
        border-radius: 0 0 10px 10px;
    }
}

/* Language Loading State */
.page-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.page-loading.show {
    opacity: 1;
    visibility: visible;
}

.page-loading .loading-content {
    text-align: center;
    color: var(--dark-color);
}

.page-loading .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.page-loading .loading-text {
    font-size: 14px;
    color: var(--gray);
}

/* RTL Support for Arabic/Hebrew (future) */
[dir="rtl"] .language-options {
    right: auto;
    left: 0;
}

[dir="rtl"] .language-btn {
    flex-direction: row-reverse;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .language-btn {
        border-width: 3px;
    }
    
    .language-option {
        border-bottom: 1px solid #ccc;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .language-btn .fas,
    .language-options,
    .page-loading {
        transition: none;
    }
}

/* Login Dropdown */
.login-dropdown {
    position: relative;
}

.login-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.login-btn {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    color: var(--white);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 140px;
    justify-content: space-between;
    white-space: nowrap;
    text-decoration: none;
}

.login-btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.login-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.login-btn .fas:first-child {
    font-size: 14px;
    flex-shrink: 0;
}

.login-btn .fas:last-child {
    font-size: 10px;
    transition: transform 0.3s ease;
    margin-left: auto;
    flex-shrink: 0;
}

.login-btn.active .fas:last-child {
    transform: rotate(180deg);
}

.login-text {
    flex: 1;
    text-align: center;
    margin: 0 4px;
}

.login-options {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 99999;
    overflow: hidden;
}

.login-options.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.login-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--dark-color);
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.login-option:last-child {
    border-bottom: none;
}

.login-option:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

.login-option:active {
    background: rgba(255, 107, 53, 0.1);
}

.login-option i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.login-option span {
    flex: 1;
}

/* Add arrow indicator on hover */
.login-option::after {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 12px;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

.login-option:hover::after {
    opacity: 0.5;
    transform: translateX(0);
}

/* Dropdown backdrop blur effect */
.dropdown-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    backdrop-filter: blur(2px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.dropdown-backdrop.show {
    opacity: 1;
    visibility: visible;
}

/* Improve login dropdown appearance */
.login-options::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--white);
    z-index: 99999;
}

/* Add subtle animation to login options */
.login-option {
    transform: translateX(0);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.login-options.show .login-option {
    animation: slideInOption 0.3s ease forwards;
}

.login-options.show .login-option:nth-child(1) {
    animation-delay: 0.1s;
}

.login-options.show .login-option:nth-child(2) {
    animation-delay: 0.15s;
}

.login-options.show .login-option:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes slideInOption {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Focus states for better accessibility */
.login-option:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
    background: var(--light-color);
}

.login-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading state for login options */
.login-option.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.login-option.loading::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* Improve dropdown shadow on different backgrounds */
.login-options {
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Add smooth transition for all dropdown states */
.login-dropdown-wrapper * {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .login-options {
        border: 2px solid var(--dark-color);
    }
    
    .login-option {
        border-bottom: 2px solid rgba(0, 0, 0, 0.2);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .login-dropdown-wrapper *,
    .login-options,
    .login-btn,
    .login-option {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
    
    .login-options.show {
        opacity: 1;
        visibility: visible;
    }
}

/* Mobile Login Dropdown */
@media (max-width: 768px) {
    .login-dropdown {
        margin-top: 0.5rem;
    }
    
    .login-btn {
        width: 100%;
        justify-content: center;
        background: var(--primary-color);
        border: 2px solid var(--primary-color);
        color: var(--white);
        min-width: auto;
        padding: 12px 20px;
    }
    
    .login-options {
        position: relative;
        top: 0;
        right: 0;
        margin-top: 10px;
        width: 100%;
        min-width: 100%;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px) scale(0.95);
        transition: all 0.3s ease;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    
    .login-options.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }
    
    .login-option {
        background: var(--white);
        margin: 0;
        border-radius: 0;
        padding: 16px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .login-option:first-child {
        border-radius: 12px 12px 0 0;
    }
    
    .login-option:last-child {
        border-radius: 0 0 12px 12px;
        border-bottom: none;
    }
}

/* Tablet responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .login-btn {
        min-width: 120px;
        font-size: 13px;
        padding: 8px 14px;
    }
    
    .login-options {
        min-width: 180px;
    }
    
    .login-option {
        padding: 14px 18px;
        font-size: 13px;
    }
}

/* Large screen optimization */
@media (min-width: 1200px) {
    .login-options {
        min-width: 220px;
    }
    
    .login-option {
        padding: 18px 24px;
        font-size: 15px;
    }
    
    .login-option i {
        font-size: 18px;
        width: 22px;
    }
}

/* Enhanced Language Dropdown Debugging */
.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-dropdown:hover .language-options {
    /* Debug: Show on hover as fallback */
    opacity: 0.5;
    visibility: visible;
    transform: translateY(0);
}

.language-options {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    background: var(--white) !important;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* Input with buttons (map and current location) */
.input-with-button {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-button input {
    flex: 1;
    padding-right: 90px; /* Space for two buttons */
}

.map-button,
.current-location-btn {
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.current-location-btn {
    right: 5px;
    background: var(--success);
}

.map-button:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
}

.current-location-btn:hover {
    background: #219a52;
    transform: translateY(-50%) scale(1.1);
}

.map-button:active,
.current-location-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* Current Location Button */
.current-location-container {
    margin: 10px 0;
    text-align: center;
}

.btn-current-location {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 10px rgba(0, 123, 255, 0.3);
}

.btn-current-location:hover:not(:disabled) {
    background: linear-gradient(45deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.btn-current-location:disabled {
    background: #6c757d;
    color: #adb5bd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-current-location i {
    font-size: 16px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.btn-current-location:disabled i {
    animation: none;
}

/* Loading state for current location button */
.btn-current-location.loading {
    background: linear-gradient(45deg, #28a745, #20c997);
    pointer-events: none;
}

.btn-current-location.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Booking Result Overlay */
.booking-result-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.booking-result {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.result-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.result-header i {
    font-size: 3rem;
    color: #27ae60;
    margin-bottom: 0.5rem;
}

.result-header h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin: 0;
}

.result-info {
    margin-bottom: 1.5rem;
}

.result-info p {
    margin-bottom: 0.8rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.result-info strong {
    color: #2c3e50;
    display: inline-block;
    min-width: 120px;
}

.result-actions {
    text-align: center;
}

.result-actions .btn {
    min-width: 150px;
    font-size: 1.1rem;
}

/* Animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* SweetAlert2 Custom Styles */
.booking-success-modal {
    font-family: 'Kanit', sans-serif !important;
}

.booking-success-modal .swal2-title {
    color: var(--primary-color) !important;
    font-size: 1.8rem !important;
    margin-bottom: 20px !important;
}

.booking-success-modal .swal2-html-container {
    font-size: 14px !important;
    line-height: 1.6 !important;
    text-align: left !important;
}

.booking-success-modal .swal2-html-container p {
    margin: 8px 0 !important;
}

.booking-success-modal .swal2-html-container strong {
    color: var(--dark-color) !important;
    font-weight: 600 !important;
}

.booking-success-modal .swal2-confirm {
    background-color: var(--primary-color) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 30px !important;
    font-weight: 500 !important;
    font-family: 'Kanit', sans-serif !important;
}

.booking-success-modal .swal2-confirm:hover {
    background-color: var(--secondary-color) !important;
}

/* SweetAlert2 Loading Animation */
.swal2-popup .swal2-loading {
    color: var(--primary-color) !important;
}

.swal2-popup .swal2-loading .swal2-loader {
    border-color: var(--primary-color) transparent var(--primary-color) transparent !important;
}