/* modern-style.css - Modern styling for Mercy Orchid Resort */

:root {
    --primary-color: #3496d8;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 5px 20px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    margin-right: 10px;
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    margin: 0 15px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../img/the-town-bg-01.jpg'); /* မင်းရဲ့ ပုံ path */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Darkness level - 0.4 က ၄၀% အမှောင် */
    z-index: 1;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
}

.hero-content h1 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Add to modern-style.css */
.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 10;
    cursor: pointer; /* Add cursor pointer */
}

/* Make it more visible on mobile */
@media (max-width: 768px) {
    .hero-scroll {
        bottom: 20px;
    }
    
    .scroll-down {
        width: 45px;
        height: 45px;
        line-height: 43px;
        border: 3px solid white; /* Thicker border */
        box-shadow: 0 0 10px rgba(255,255,255,0.5); /* Add glow effect */
    }
}

.scroll-down {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 2px solid white;
    border-radius: 50%;
    text-align: center;
    line-height: 48px;
    color: white;
    transition: var(--transition);
}

.scroll-down:hover {
    background: white;
    color: var(--primary-color);
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive for Hero Scroll */
@media (max-width: 768px) {
    .hero-scroll {
        bottom: 15px;
    }
    
    .scroll-down {
        width: 40px;
        height: 40px;
        line-height: 38px;
        font-size: 0.9rem;
    }
}
/* Section Styles */
.section-title h6 {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title h2 {
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

/* About Section */
.about-img-wrapper {
    position: relative;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--primary-color);
    color: white;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.experience-badge h3 {
    font-size: 2.5rem;
    margin: 0;
}

.experience-badge p {
    margin: 0;
    font-size: 0.9rem;
}

.feature-box {
    text-align: center;
    padding: 20px;
    transition: var(--transition);
}

.feature-box i {
    font-size: 3rem;
    display: block;
}

.feature-box:hover {
    transform: translateY(-5px);
}

/* Room Cards */
.room-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.room-img {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.room-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.room-card:hover .room-img img {
    transform: scale(1.1);
}

.room-price {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
}

.room-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.room-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    flex: 1;
}

.room-features li {
    padding: 5px 0;
    color: #666;
}

.room-features i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Booking Form */
.booking-form-wrapper {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.availability-checker {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 15px;
}

#availabilityResults {
    background: #f0f8ff;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.room-availability-card {
    background: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.available {
    color: #27ae60;
    font-weight: 600;
}

.booked {
    color: #e74c3c;
    font-weight: 600;
}

/* Gallery */
/* Gallery - Modern Design */
.gallery-container {
    position: relative;
    overflow: hidden;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* All gallery items same size */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    aspect-ratio: 4/3; /* Same as room cards */
    background: #f0f0f0;
    height: 250px; /* Fixed height like room cards */
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.gallery-info {
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
}

.gallery-info h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.gallery-info p {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.gallery-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.gallery-view-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: white;
    transform: translateX(5px);
    color: white;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
    opacity: 1;
}

/* Filter Tabs */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid #e0e0e0;
    color: #666;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.filter-btn.active,
.filter-btn:hover {
    color: white;
    border-color: var(--primary-color);
}

.filter-btn.active::before,
.filter-btn:hover::before {
    width: 300px;
    height: 300px;
}

.filter-btn span {
    position: relative;
    z-index: 1;
}

/* Loading Animation */
.gallery-item {
    animation: galleryFadeIn 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes galleryFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }
.gallery-item:nth-child(7) { animation-delay: 0.7s; }
.gallery-item:nth-child(8) { animation-delay: 0.8s; }
.gallery-item:nth-child(9) { animation-delay: 0.9s; }

/* Lightbox Enhancement */
.lightbox {
    animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: lightboxZoomIn 0.4s ease;
}

@keyframes lightboxZoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

/* Responsive Gallery */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-item {
        aspect-ratio: 16/9; /* Wider ratio for mobile */
    }
    
    .gallery-info h4 {
        font-size: 1.2rem;
    }
    
    .gallery-overlay {
        padding: 20px;
    }
}

/* Photo Categories Badge */
.photo-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    z-index: 2;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.gallery-item:hover .photo-category {
    opacity: 1;
    transform: translateY(0);
}


/* Contact */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-item i {
    font-size: 2rem;
    margin-top: 5px;
}

.map-wrapper {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-5px);
}

/* Button Styles */
.btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Form Controls */
.form-control,
.form-select {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 20px;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* Loading Spinner */
.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 0.2em;
}

/* Responsive */

    
@media (max-width: 768px) {
    .nav-link {
        margin: 10px 0;
    }
    
    .booking-form-wrapper {
        padding: 30px 20px;
    }
    
    .about-img-wrapper {
        margin-bottom: 50px;
    }
    
    .experience-badge {
        bottom: -20px;
        right: 20px;
        width: 100px;
        height: 100px;
    }
}


/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Alert Messages */
.alert {
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark Mode Toggle (Optional) */
.dark-mode-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 998;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
}

/* Dark Mode Styles */
body.dark-mode {
    background: #1a1a1a;
    color: #f0f0f0;
}

body.dark-mode .navbar {
    background: rgba(26, 26, 26, 0.95);
}

body.dark-mode .nav-link {
    color: #f0f0f0 !important;
}

body.dark-mode .room-card,
body.dark-mode .booking-form-wrapper {
    background: #2c2c2c;
    color: #f0f0f0;
}

body.dark-mode .form-control,
body.dark-mode .form-select {
    background: #1a1a1a;
    color: #f0f0f0;
    border-color: #444;
}

/* Fix light background sections in dark mode */
body.dark-mode .bg-light {
    background-color: #2a2a2a !important; /* Dark gray background */
}

/* Keep section titles readable */
body.dark-mode .section-title h2 {
    color: #f0f0f0 !important; /* White text for dark background */
}

body.dark-mode .section-title h6 {
    color: var(--primary-color) !important; /* Blue accent color */
}

body.dark-mode .room-card p.text-muted {
    color: #ccc !important; /* Light gray for room details */
}

/* Form labels in booking section */
body.dark-mode .form-label {
    color: #f0f0f0 !important; /* White labels */
}

/* Room features text */
body.dark-mode .room-features li {
    color: #ddd !important;
}

/* Booking form wrapper text */
body.dark-mode .booking-form-wrapper p,
body.dark-mode .booking-form-wrapper h2,
body.dark-mode .booking-form-wrapper h5,
body.dark-mode .booking-form-wrapper h6 {
    color: #f0f0f0 !important;
}

/* Availability checker background */
body.dark-mode .availability-checker {
    background: #333 !important;
}

/* Availability results background */
body.dark-mode #availabilityResults {
    background: #2a2a2a !important;
    color: #f0f0f0;
}

/* *** Calendar icon in dark mode *** */
/* All icons in booking form */
body.dark-mode .booking-form-wrapper i,
body.dark-mode .btn i {
    color: white !important;
}

/* Specifically for buttons with icons */
body.dark-mode .btn-primary i {
    color: white !important;
}

/* Search button icon in availability checker */
body.dark-mode .availability-checker .btn i {
    color: white !important;
}

/* Mobile Responsive - All in One Place */
@media (max-width: 768px) {
    /* Fix Hero Content Position */
    .hero-section {
        padding-top: 80px;
    }
    
    .hero-content {
        margin-top: 20px;
    }
    
    /* Navigation - Compact Menu */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-nav {
        text-align: center;
        padding: 8px 0; /* Reduced padding */
        background: rgba(255, 255, 255, 0.98);
    }
    
    .nav-link {
        margin: 3px 0; /* Very compact */
        padding: 8px 15px;
        border-bottom: 1px solid #eee;
        font-size: 0.9rem;
    }
    
    /* Admin button */
    .nav-item .btn {
        margin: 5px 15px;
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    /* Hero Section */
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    /* Room Cards */
    .room-card {
        margin-bottom: 20px;
    }
    
    .room-price {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
    
    /* Booking Form */
    .booking-form-wrapper {
        padding: 30px 15px;
        margin: 0 10px;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
    
    .btn {
        font-size: 1rem;
        padding: 15px 30px;
    }
    
    /* About Section */
    .about-img-wrapper {
        margin-bottom: 50px;
    }
    
    .experience-badge {
        display: none;
    }

    
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    /* Price Estimate Box */
    #priceEstimate {
        font-size: 0.85rem;
        padding: 10px;
    }
}

/* Extra Small Phones */
@media (max-width: 576px) {
    /* Form Controls - No Zoom */
    .form-control,
    .form-select {
        font-size: 16px !important;
        padding: 15px;
    }
    
    /* Touch Friendly Buttons */
    .btn-primary {
        width: 100%;
        padding: 15px;
        font-size: 1.1rem;
        min-height: 50px;
    }
    
    /* Room Features Horizontal Scroll */
    .room-features {
        display: flex;
        overflow-x: auto;
        gap: 15px;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .room-features li {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* Disable AOS animations */
[data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}