@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
    --primary-red: #8B0000;
    --primary-blue: #0A2351;
    --accent-gold: #D4AF37;
    --bg-light: #F8F9FA;
    --text-main: #1A1A1A;
    --text-muted: #666666;
    --white: #FFFFFF;
    
    /* Effects */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.18);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 50px rgba(10, 35, 81, 0.15);
    --border-radius-lg: 16px;
    --border-radius-md: 8px;
    --transition-fast: all 0.2s ease;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .serif-font {
    font-family: 'Playfair Display', serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

/* Glassmorphism Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-text h1 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: -4px;
}

.logo-text p {
    font-size: 0.85rem;
    color: var(--accent-gold);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    color: var(--primary-blue);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-gold);
    transition: var(--transition-smooth);
}

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

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    font-family: 'Outfit', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red), #C21807);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.4);
}

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

.btn-secondary:hover {
    background: #0d2f6d;
    transform: translateY(-2px);
}

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

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

.admin-access-link {
    margin-left: 1.5rem;
    color: var(--primary-blue);
    font-size: 0.9rem;
    opacity: 0.4;
    transition: var(--transition-smooth);
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-access-link:hover {
    opacity: 1;
    background: rgba(212, 175, 55, 0.08); /* Subtle gold tint on hover */
    transform: translateY(-1px) rotate(10deg) scale(1.1);
    color: var(--accent-gold);
}

.admin-access-link i {
    font-size: 0.85rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 80px;
    background: linear-gradient(rgba(10, 35, 81, 0.7), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1560066984-138dadb4c035?q=80&w=1974&auto=format&fit=crop') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    animation: fadeInDown 1s ease-out;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: var(--white);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.highlight-gold {
    color: var(--accent-gold);
}

/* Sections Global */
section {
    padding: 6rem 5%;
}

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

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

.section-header p {
    color: var(--accent-gold);
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* About Section */
.about-section {
    background-color: var(--white);
}

.owners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.owner-card {
    background: var(--bg-light);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

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

.owner-image {
    height: 450px; /* Increased for more premium portrait feel */
    overflow: hidden;
    background: #e9ecef; /* Neutral placeholder background */
}

.owner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.founder-img-zoom {
    transform: scale(1.6);
    transform-origin: center center;
    object-position: center 25%; /* Focus on Arjun's face */
}

.founder-img-vinita {
    object-position: center 55%; /* Crop top (ceiling) and show more of the dress/torso */
}

.owner-card:hover .owner-image img {
    transform: scale(1.05);
}

.owner-card:hover .owner-image img.founder-img-zoom {
    transform: scale(1.7);
}

.owner-info {
    padding: 2rem;
    text-align: center;
}

.owner-info h3 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.owner-role {
    color: var(--accent-gold);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.owner-desc {
    color: var(--text-muted);
}

/* Services Dynamic Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

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

.service-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.05);
}

.service-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-content h3 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.service-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.price {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-red);
}

/* Gallery Base Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 35, 81, 0.8), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Booking Section */
.booking-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, white 100%);
    position: relative;
}

.booking-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.booking-info {
    flex: 1;
    background: var(--primary-blue);
    color: var(--white);
    padding: 4rem;
    position: relative;
}

.booking-info::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h100v100H0z" fill="none"/><path d="M0 0l100 100M100 0L0 100" stroke="%23ffffff" stroke-width="0.5" stroke-opacity="0.1"/></svg>');
}

/* Map inside booking-info (blue box) */
.booking-info .contact-map {
    margin-top: 1.25rem; /* spacing from phone numbers */
    width: 100%;
    box-sizing: border-box;
}

.booking-info .map-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--border-radius-md);
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    position: relative; /* Added for overlay */
}

.map-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    text-decoration: none;
}

.map-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 35, 81, 0.0);
    transition: var(--transition-smooth);
}

.map-overlay-link:hover .map-overlay {
    background: rgba(10, 35, 81, 0.3);
}

.btn-map {
    background: var(--accent-gold);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.map-overlay-link .btn-map {
    opacity: 0.9;
    transform: translateY(0);
}

.map-overlay-link:hover .btn-map {
    opacity: 1;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .btn-map {
        opacity: 1 !important;
        transform: none !important;
    }
}

.booking-info .map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

@supports not (aspect-ratio: 16/9) {
    .booking-info .map-embed {
        height: 200px; /* fallback for older browsers */
    }
}

@media (max-width: 420px) {
    .booking-info .map-embed { aspect-ratio: 4 / 3; }
}

.booking-form {
    flex: 1.5;
    padding: 4rem;
}

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

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

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid #E0E0E0;
    border-radius: var(--border-radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Footer */
footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 4rem 5% 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 3rem;
}

.footer-col h3 {
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.footer-col p, .footer-col li {
    color: rgba(255,255,255,0.8);
    margin-bottom: 1rem;
}

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

/* Admin Dashboard Overrides */
.admin-body {
    background: #F4F6F9;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--primary-blue);
    color: var(--white);
    padding: 2rem 0;
    position: fixed;
    height: 100%;
}

.sidebar .logo-text {
    padding: 0 2rem;
    margin-bottom: 3rem;
}

.sidebar .logo-text h1 { color: var(--white); }

.nav-menu {
    list-style: none;
}

.nav-menu li a {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    color: rgba(255,255,255,0.7);
    gap: 1rem;
}

.nav-menu li a:hover, .nav-menu li.active a {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-left: 4px solid var(--accent-gold);
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem 3rem;
}

/* Dashboard Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(10, 35, 81, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.stat-info h4 {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.stat-info .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
}

/* Data Tables */
.data-table-container {
    background: var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    padding: 1.5rem;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    font-family: inherit;
    color: var(--text-muted);
    font-weight: 500;
}

/* Status Badges */
.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-pending { background: #FFF3CD; color: #856404; }
.badge-completed { background: #D4EDDA; color: #155724; }

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 500px;
    transform: translateY(-20px);
    transition: var(--transition-smooth);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

/* Responsive Navbar Styles */
.mobile-menu-icon {
    display: none;
    font-size: 1.8rem;
    color: var(--primary-blue);
    cursor: pointer;
    transition: var(--transition-fast);
}

.mobile-book {
    display: none;
}

/* Admin Mobile Sidebar UI */
.admin-mobile-header {
    display: none;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    border-radius: var(--border-radius-md);
}

.admin-mobile-header .btn-icon {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-blue);
    cursor: pointer;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.sidebar-close-btn {
    display: none;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.sidebar-close-btn:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 900px) {
    /* Navbar responsive */
    .logo-container {
        position: relative;
        z-index: 2001; /* Keep logo visible above menu */
    }
    .mobile-menu-icon {
        display: block;
        position: relative;
        z-index: 2001; /* Keep icon visible above menu */
    }
    .desktop-book {
        display: none !important;
    }
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #ffffff;
        opacity: 0;
        visibility: hidden;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        padding: 0;
        z-index: 2000;
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    }
    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }
    .nav-links li {
        width: 100%;
        text-align: center;
        transform: translateY(20px);
        transition: transform 0.4s ease-in-out;
    }
    .nav-links.active li {
        transform: translateY(0);
    }
    .nav-links li a {
        display: inline-block;
        padding: 1rem 0;
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--primary-blue);
    }
    .nav-links li a::after {
        display: none; /* Disable gold line underline effect on mobile */
    }
    .mobile-book {
        display: block;
        margin-top: 1.5rem;
        padding: 0 2rem;
    }
    .mobile-book a {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        justify-content: center;
        padding: 1rem !important;
        font-size: 1.1rem;
    }

    .mobile-admin-access {
        position: absolute;
        bottom: 2rem;
        right: 2rem;
        width: auto !important;
    }

    .mobile-admin-access a {
        background: rgba(10, 35, 81, 0.05);
        padding: 0.8rem !important;
        border-radius: 50%;
        display: flex !important;
        align-items: center;
        justify-content: center;
        opacity: 0.5;
        font-size: 1rem !important;
        transition: var(--transition-smooth);
    }

    .mobile-admin-access a:active {
        background: rgba(10, 35, 81, 0.1);
        transform: scale(0.9);
        opacity: 0.8;
    }

    .mobile-admin-access a span {
        display: none; /* Hide label on mobile to keep it discreet */
    }

    .mobile-admin-access i {
        margin: 0 !important;
    }

    .admin-access-link {
        display: none; /* Hide the desktop link on mobile, use the one inside the menu */
    }

    .booking-container { flex-direction: column; }
    .hero h1 { font-size: 3rem; }
    
    .admin-mobile-header { display: flex; }
    .sidebar-close-btn { display: block; }
    
    .sidebar { transform: translateX(-100%); transition: var(--transition-smooth); z-index: 1501; }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; padding: 1rem; }
    
    /* Responsive Tables */
    .data-table-container table, 
    .data-table-container thead, 
    .data-table-container tbody, 
    .data-table-container th, 
    .data-table-container td, 
    .data-table-container tr {
        display: block;
    }
    
    .data-table-container thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .data-table-container tr {
        border-bottom: 2px solid #eee;
        margin-bottom: 1.5rem;
        border-radius: var(--border-radius-md);
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        padding: 1rem;
        background: var(--white);
        border: 1px solid #eee;
    }
    
    .data-table-container td {
        border: none;
        border-bottom: 1px solid #f8f9fa;
        position: relative;
        padding-left: 50%;
        text-align: right;
        min-height: 48px;
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }
    
    .data-table-container td:before {
        position: absolute;
        left: 1rem;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
        top: 50%;
        transform: translateY(-50%);
    }
    
    .data-table-container td:last-child {
        border-bottom: 0;
    }
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Utility */
.d-none { display: none !important; }
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }
