/* =========================================
   ၁။ Global Styles (နှစ်ခုလုံးအတွက် အခြေခံ)
   ========================================= */
:root {
    --primary-green: #008450;
    --bg-light: #f4f7f6;
    --white: #ffffff;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans Myanmar', sans-serif;
    background-color: var(--bg-light);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

/* =========================================
   ၂။ Header & Navigation (Shared)
   ========================================= */
.main-header {
    background: #000;
    padding: 10px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 14px;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
}
/* Navigation Wrapper ကို Mobile အတွက် ညှိခြင်း */
.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
}

/* =========================================
   ၃။ Index.html အတွက် သီးသန့် Design များ
   ========================================= */
/* Hero Section ကို အပါးဆုံးဖြစ်အောင် လျှော့ချခြင်း */
.hero-simple {
    background: #a0a0a0; /* မူရင်း မီးခိုးရောင်နောက်ခံ */
    padding: 20px 0;    /* အပေါ်အောက် Padding ကို 20px အထိ ထပ်မံလျှော့ချလိုက်ပါ */
    text-align: center;
    color: white;
    min-height: auto;   /* Height အသေရှိနေပါက ပယ်ဖျက်ရန် */
}

.hero-simple h1 {
    font-size: 1.5rem;  /* စာလုံးအရွယ်အစားကို အနည်းငယ် ထပ်သေးလိုက်ပါ */
    margin: 0 0 5px 0;  /* စာသားများကြား အကွာအဝေးကို ကပ်လိုက်ပါ */
    line-height: 1.2;
}

.hero-simple p {
    font-size: 0.9rem;
    margin: 0 0 10px 0; /* ခလုတ်နှင့် အကွာအဝေးကို လျှော့ချပါ */
    opacity: 0.9;
}
/* ပုံများကို တစ်တန်းတည်း စီရန် */
.news-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* ပုံ ၃ ပုံကို အညီအမျှ နေရာခွဲခြင်း */
    gap: 10px;                             /* ပုံများကြား အကွာအဝေး */
    margin-top: 10px;
}

.news-gallery img {
    width: 100%;
    height: 150px;       /* ပုံအားလုံး အရပ်တူစေရန် */
    object-fit: cover;   /* ပုံမပြားသွားစေဘဲ အချိုးကျ ဖြတ်ညှိပေးရန် */
    border-radius: 5px;  /* ထောင့်လေးများ ဝိုင်းရန် */
    border: 1px solid #eee;
}
.btn-tel {
    background: #008450;
    color: white;
    padding: 6px 15px;  /* ခလုတ်အရွယ်အစားကို ကျစ်လျစ်အောင်လုပ်ပါ */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    font-size: 0.85rem;
}

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; margin-top: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 20px; }

.service-card-box, .fleet-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    overflow: hidden;
}

.service-card-box img, .fleet-box img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}
/* Container spacing ကို လျှော့ချရန် */
.section-padding {
    padding: 20px 0; /* အပေါ်အောက် Padding ကို ၆၀ မှ ၂၀ သို့ လျှော့ချသည် */
}

/* ဝန်ဆောင်မှုကတ်ပြားများ အချိုးကျစေရန် */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.card-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-item img {
    width: 100%;
    height: 180px; /* ပုံအရွယ်အစားကို ပုံသေသတ်မှတ်၍ အချိုးကျစေသည် */
    object-fit: cover;
}

/* "Booking Page သို့ သွားရန်" နေရာ ပြင်ဆင်ချက် */
.booking-cta-section {
    background: #f9f9f9;
    padding: 30px 15px;
    text-align: center;
    border-top: 1px solid #eee;
}

.gray-box {
    background: #eee;
    display: inline-block;
    padding: 10px 20px;
    font-size: 0.85rem;
    border-radius: 5px;
    margin-bottom: 20px;
    max-width: 90%;
}

.btn-booking {
    background: #008450;
    color: white;
    padding: 12px 35px;
    text-decoration: none;
    border-radius: 25px; /* ခလုတ်ကို ပိုဝိုင်းစေသည် */
    font-weight: bold;
    display: inline-block;
    transition: transform 0.2s;
}

.btn-booking:hover {
    transform: scale(1.05);
}

/* "ဆက်သွယ်မေးမြန်းရန်" Footer နေရာ ပြင်ဆင်ချက် */
.main-footer {
    background: #1a1a1a;
    color: white;
    padding: 30px 15px;
    text-align: center;
}

.main-footer h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #fdd835; /* ခေါင်းစဉ်ကို အဝါရောင်ပေးထားသည် */
}

.footer-info {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.8;
}

/* =========================================
   ၄။ Booking.html အတွက် Mobile Friendly Design
   ========================================= */
.app-container {
    width: 100%;
    max-width: 500px; /* ဖုန်းဆိုဒ်ထက် မကျော်စေရန် */
    margin: 0 auto;
    background: var(--white);
    min-height: 100vh;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}
/* Booking Page Header Design */
.app-container header {
    background-color: #008450; /* Panmyotaw Green */
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 12px 12px 0 0; /* အပေါ်ထောင့်လေးများကို ဝိုင်းစေရန် */
}

.app-container header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Back Button Style */
.back-btn {
    background: rgba(255, 255, 255, 0.2); /* အဖြူရောင် မှိန်မှိန်လေး ခံထားခြင်း */
    border: none;
    color: white;
    font-size: 1.2rem;
    width: 35px;
    height: 35px;
    border-radius: 50%; /* ဝိုင်းဝိုင်းလေး ဖြစ်စေရန် */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.booking-form {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
    /* ၁။ Input အကွက်များထဲက စာလုံးများကို သေးရန် */
    .form-group input, 
    .form-group textarea, 
    .form-group select {
    font-size: 0.7rem !important; /* သို့မဟုတ် 14px */
    padding: 8px !important;    /* စာလုံးသေးသွားတဲ့အတွက် padding ကိုလည်း နည်းနည်းလျှော့တာ ပိုကြည့်ကောင်းပါတယ် */
    }
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 0.8rem !important; /* Label ကို ပိုသေးပြီး bold လုပ်ထားရင် ပိုကြည့်ကောင်းပါတယ် */
    margin-bottom: 5px;
    
}

input, select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box; /* Screen အပြင်မထွက်စေရန် */
    font-size: 12px;
}

.input-with-btn {
    display: flex;
    gap: 10px;
}

.btn-map {
    background: #fdd835;
    border: none;
    width: 50px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-primary-full {
    width: 100%;
    background-color: var(--primary-green);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

/* Modal Window */
/* Modal Window ကို Screen အလယ်မှာ ပေါ်စေရန် */
.modal {
    display: none;          /* ပုံမှန်အချိန်တွင် ဖျောက်ထားမည် */
    position: fixed;        /* Screen ပေါ်တွင် အသေထားမည် */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* နောက်ခံကို အမည်းရောင် မှိန်မှိန်လေးခံမည် */
    z-index: 9999;          /* အခြား element များအားလုံး၏ အပေါ်သို့ ရောက်စေရန် */
    align-items: center;    /* ဒေါင်လိုက် အလယ်ညှိခြင်း */
    justify-content: center; /* အလျားလိုက် အလယ်ညှိခြင်း */
}

/* Modal အထဲက အဖြူရောင် Box */
.modal-content {
    background: white;
    width: 90%;             /* Mobile မျက်နှာပြင်၏ ၉၀% ယူမည် */
    max-width: 450px;       /* အကျယ်ဆုံး ၄၅၀ ထက်မကျော်စေရန် */
    padding: 20px;
    border-radius: 12px;
    position: relative;     /* အတွင်းပိုင်း နေရာချထားမှုအတွက် */
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    text-align: center;
}

/* Map Picker Box */
#map-picker {
    width: 100%;
    height: 350px;          /* Map ၏ အမြင့်ကို သတ်မှတ်ခြင်း */
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}
/* --- Dynamic News Section Styles --- */

#dynamic-news-gallery {
    display: flex;
    overflow-x: auto; /* ဘေးတိုက်ရွှေ့ရန် */
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 10px;
    scrollbar-width: none; /* Firefox အတွက် */
    scroll-behavior: smooth; /* အလိုအလျောက်ရွေ့လျှင် ညင်သာစေရန် */
    -webkit-overflow-scrolling: touch;
}

/* Chrome/Edge/Safari အတွက် scrollbar ဖျောက်ရန် */
#dynamic-news-gallery::-webkit-scrollbar {
    display: none;
}

.slide-img {
    flex: 0 0 100%;
    width: 100%;
    /* 600px ၏ ၇၅ ရာခိုင်နှုန်းဖြစ်သော 450px သို့ ပြောင်းလဲပါ */
    height: 350px; 
    min-height: 250px; 
    
    /* cover သည် frame တစ်ခုလုံးကို ပုံအချိုးအစားမပျက်စေဘဲ အပြည့်ဖြည့်ပေးပါသည် */
    object-fit: cover; 
    object-position: center; 
    
    border-radius: 12px;
    display: block;
    margin: 10px auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
#dynamic-news-gallery img:hover {
    transform: scale(1.02); /* Mouse တင်လိုက်ရင် အနည်းငယ် ကြီးလာစေရန် */
}

#dynamic-news-content {
    margin-top: 20px;
    padding: 0 15px;
}

#dynamic-news-content .small-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    text-align: center;
    font-weight: 400;
}
/* Admin Link ကို သီးသန့် ပုံစံထုတ်ခြင်း */
.admin-link {
    color: #008450 !important; /* သင့် Website ရဲ့ အစိမ်းရောင် Theme နှင့် ညှိထားပါသည် */
    font-weight: bold;
    border: 1px solid #008450;
    padding: 5px 15px;
    border-radius: 20px;
    transition: 0.3s;
    text-decoration: none;
}

.admin-link:hover {
    background-color: #008450;
    color: white !important;
}


/* Compact Footer Styles */
/* Ultra-Compact Footer Styles */
.main-footer {
    background-color: #1a1a1a;
    color: #ffffff;
    /* အပေါ်အောက် Padding ကို အနည်းဆုံး 15px အထိ လျှော့ချလိုက်သည် */
    padding: 15px 20px 10px; 
    margin-top: 15px;
    font-family: 'Pyidaungsu', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px; /* ကဏ္ဍတစ်ခုချင်းကြား အကွာအဝေးကို ပိုကျဉ်းလိုက်သည် */
}

.footer-section h4 {
    color: #008450;
    margin-bottom: 5px; /* ခေါင်းစဉ်အောက်က နေရာလွတ်ကို လျှော့ချသည် */
    font-size: 1rem;
}

.footer-section p, .footer-section ul li {
    line-height: 1.3; 
    margin-bottom: 3px;
    font-size: 0.85rem;
    color: #ccc;
}

.map-preview {
    background: #333;
    color: #ffd700;
    padding: 5px; /* Map ခလုတ်ကို ပိုသေးအောင်လုပ်သည် */
    border-radius: 4px;
    font-size: 0.75rem;
    display: inline-block; /* နေရာအပြည့်မယူစေရန် */
    margin-top: 5px;
}

.footer-bottom {
    text-align: center;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #333;
    font-size: 11px;
    color: #555;
}


.map-link {
    text-decoration: none;
    display: block;
    margin-top: 10px;
}

.map-preview {
    background: #333;
    color: #ffd700; /* အဝါရောင် Home button နှင့် လိုက်ဖက်စေရန် */
    padding: 8px;
    border-radius: 5px;
    font-size: 0.8rem;
    text-align: center;
    border: 1px solid #444;
    transition: 0.3s;
}

.map-preview:hover {
    background: #008450;
    color: white;
    border-color: #008450;
}
.btn-back-home-new {
    background-color: #FFD700; /* အဝါရင့်ရောင် (Gold) */
    color: #333;
    text-decoration: none;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: 0.3s ease;
    border: 1px solid #e6c200;
}

.btn-back-home-new {
    margin-left: auto; /* ၎င်းသည် ညာဘက်သို့ အလိုအလျောက် တွန်းထုတ်ပေးပါသည် */
}

.btn-back-home-new:hover {
    background-color: #ffcc00;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-back-home-new span {
    font-size: 16px;
}

.compact-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem; /* စာလုံးအရွယ်အစား လျှော့ချထားသည် */
}

.compact-table th {
    background-color: #f8f9fa;
    color: #555;
    font-weight: 600;
    padding: 10px;
    text-align: left;
    border-bottom: 2px solid #eee;
}

.compact-table td {
    padding: 10px;
    border-bottom: 1px solid #f1f1f1;
    vertical-align: middle;
}

/* Link Style */
.map-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    transition: 0.2s;
}

.map-link:hover {
    background-color: #e7f1ff;
}

/* Delete Button Style */
.btn-delete-small {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: 0.3s;
}

.btn-delete-small:hover {
    background-color: #cc0000;
}
/* </style> မပိတ်ခင် ဤကုဒ်ကို ထည့်ပါ */
.btn-logout-modern {
    background-color: #f1c40f;
    color: #333;
    border: none;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.btn-logout-modern:hover {
    background-color: #d4ac0d;
    transform: scale(1.05);
}
.nav-download-btn {
    background-color: #f1c40f; /* Taxi အဝါရောင် */
    color: #333 !important;
    padding: 8px 15px !important;
    border-radius: 5px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-download-btn:hover {
    background-color: #d4ac0d;
}
/* =======================================================
   Mobile Devices အတွက် Responsive Design (Clean Version)
   ======================================================= */
@media (max-width: 600px) {
    /* Container နှင့် Layout ညှိခြင်း */
    .container, .app-container {
        padding: 10px !important;
        max-width: 100% !important;
    }

    /* မြေပုံအရွယ်အစား */
    #map, #map-picker {
        height: 280px !important;
    }

    /* Form Input များနှင့် Label များ */
    .form-group input, 
    .form-group select, 
    .form-group textarea {
        font-size: 0.85rem !important;
        padding: 10px !important;
    }

    .form-group label {
        font-size: 0.8rem !important;
        margin-bottom: 5px !important;
    }

    /* ခလုတ်များကို လက်ဖြင့်နှိပ်ရလွယ်ကူစေရန် */
    .booking-btn, .btn-primary-full {
        font-size: 1rem !important;
        padding: 15px !important;
    }

    /* Header နှင့် စာသားများ */
    .header-nav span, .app-container header h2 {
        font-size: 0.85rem !important;
    }

    /* Image Gallery (News Section) */
    .slide-img {
        height: 250px !important;
        min-height: 200px !important;
    }
}
/* Container ကို ကျဉ်းစေပြီး အလယ်ပို့ရန် */
.app-container {
    width: 100%;
    max-width: 500px; /* Width ကို 500px ထက် မကျော်စေရန် ကန့်သတ်ခြင်း */
    margin: 0 auto;
    background: #ffffff;
    min-height: 100vh;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

/* Header ပုံစံညှိခြင်း */
.app-container header {
    background-color: #008450;
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Input box များနှင့် ခလုတ်များ */
.form-group {
    margin-bottom: 15px;
}

.input-with-btn {
    display: flex;
    gap: 8px;
}

.btn-map {
    background: #f1c40f;
    border: none;
    width: 45px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-primary-full {
    width: 100%;
    background-color: #008450;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}
#map {
    width: 50%;
    height: 400px;
    border-radius: 12px;
    border: 2px solid #ddd;
    /* အလယ်ပို့ရန် အရေးကြီးဆုံးအပိုင်း */
    margin-left: auto;
    margin-right: auto;
    display: block; 
    margin-bottom: 20px;
}
/* edit-modal style ကို ဤကဲ့သို့ ပြင်ပါ */
/* Modal နောက်ခံအမည်းရောင် (Overlay) */
#edit-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); /* ပိုမှောင်စေရန် */
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px; /* ဘေးဘောင်နေရာလွတ် */
}

/* Modal အတွင်းပိုင်း Box */
#edit-modal .admin-box {
    width: 95%;            /* Mobile တွင် အပြည့်နီးပါးယူရန် */
    max-width: 800px;      /* Desktop တွင် ပိုကျယ်စေရန် ၈၀၀ ထားပါသည် */
    margin: 0;             /* အပေါ်အောက် margin ဖယ်ရန် */
    padding: 25px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
}

/* စာရိုက်သည့်အကွက် (Textarea) ကို ပိုကျယ်စေရန် */
#edit-content {
    width: 100%;
    min-height: 300px;     /* အမြင့်ကို ပိုတိုးထားပါသည် */
    padding: 15px;
    font-size: 1rem;
    line-height: 1.6;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;      /* User ကိုယ်တိုင် ဆွဲချဲ့နိုင်ရန် */
}
.modal-footer {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-save {
    flex: 2;
    background: #008450;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.btn-cancel {
    flex: 1;
    background: #d6f606;
    color: #cd1919;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}
/* =========================================
   MOBILE MENU FIX (Add this to bottom of CSS)
   ဖုန်း Screen များအတွက် မီနူးပြင်ဆင်ချက်
   ========================================= */
@media (max-width: 768px) {
    
    /* ၁။ Header တစ်ခုလုံးကို အပေါ်အောက် စီမယ် */
    header, .navbar, .nav-container {
        flex-direction: column !important; /* ဒေါင်လိုက်စီမယ် */
        height: auto !important; /* အမြင့်ကို Auto ထားမယ် (စာလုံးမထပ်အောင်) */
        padding: 15px 0 !important;
        text-align: center;
    }

    /* ၂။ Logo (PanmyotawEV) ကို ပြင်မယ် */
    .logo, .brand-name {
        margin-bottom: 15px !important; /* အောက်က မီနူးနဲ့ ခွာမယ် */
        display: block;
        width: 100%;
    }

    /* ၃။ မီနူးစာသားများကို ပြင်မယ် */
    nav ul, .menu-items {
        display: flex !important;
        flex-direction: row; /* ဘေးတိုက်ပြန်စီမယ် (ဒါမှမဟုတ် column ထားလို့ရ) */
        flex-wrap: wrap; /* နေရာမဆံ့ရင် အောက်တစ်ကြောင်းဆင်းမယ် */
        justify-content: center; /* အလယ်ပို့မယ် */
        padding: 0 !important;
        margin: 0 !important;
        gap: 15px; /* စာလုံးတွေကြား ခွာမယ် */
    }

    nav li, .menu-item {
        list-style: none;
        margin: 0 5px;
    }

    /* ၄။ စာလုံးဆိုဒ် အနည်းငယ် လျှော့မယ် */
    nav a, .menu-link {
        font-size: 14px !important; 
        display: inline-block;
        padding: 5px 10px;
    }
}

/* QR Code ကို 130px အကျယ်ပဲ ထားမယ် */
.footer-qr {
    width: 130px !important; 
    height: auto;
    background: white;
    padding: 5px;
    border-radius: 8px;
    display: block; /* ပုံကို Block အနေနဲ့ ပြမယ် */
    margin: 0 auto; /* အလယ်တည့်တည့် ပို့မယ် */
}

/* စာသားနဲ့ ပုံကို အလယ်ပို့မယ် */
.qr-section {
    text-align: center;
}
