/* 
 * Ashara Rooms Galiyakot - Premium Stylesheet
 * Responsive, beautiful, modern CSS with gold accents and deep green themes
 */

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

/* --- DESIGN TOKENS --- */
:root {
    --primary-color: #1a4a3a;      /* Deep Green */
    --primary-light: #235d49;
    --primary-dark: #0f3025;
    --accent-color: #c9a84c;       /* Gold */
    --accent-light: #dfc067;
    --background-color: #f8f5f0;   /* Warm Parchment */
    --card-background: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-light: #999999;
    --success-color: #16a34a;      /* Available */
    --success-light: #dcfce7;
    --danger-color: #dc2626;       /* Booked */
    --danger-light: #fee2e2;
    --border-color: #e5e5e5;
    
    --radius-card: 12px;
    --radius-btn: 8px;
    --radius-sm: 6px;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* --- RESET & GLOBAL STYLES --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-dark);
}

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

a:hover {
    color: var(--accent-color);
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* --- WRAPPER / CONTAINER --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER SECTION --- */
.site-header {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
    border-bottom: 3px solid var(--accent-color);
    
    /* Elegant Subtle Islamic Repeating Geometric Pattern Background */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 0l5.85 14.15L50 10l-4.15 14.15L60 30l-14.15 5.85L50 50l-14.15-4.15L30 60l-5.85-14.15L10 50l4.15-14.15L0 30l14.15-5.85L10 10l14.15 4.15z' fill='%23c9a84c' fill-opacity='0.08' fill-rule='evenodd'/%3E%3C/svg%3E");
}

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

.brand {
    display: flex;
    flex-direction: column;
}

.brand h1 {
    color: #ffffff;
    font-size: 1.8rem;
    font-family: var(--font-heading);
    margin: 0;
    letter-spacing: 0.5px;
}

.brand p {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 2px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-btn {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid var(--accent-color);
    padding: 8px 16px;
    border-radius: var(--radius-btn);
    font-weight: 500;
    transition: var(--transition-fast);
}

.header-btn:hover {
    background-color: var(--accent-color);
    color: var(--primary-dark);
}

.header-btn.primary {
    background-color: var(--accent-color);
    color: var(--primary-dark);
    border-color: var(--accent-color);
}

.header-btn.primary:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    color: var(--primary-color);
}

/* --- FILTER BAR --- */
.filter-section {
    background-color: #ffffff;
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-group {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none; /* Hide scrollbar for clean UI */
}

.filter-group::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.filter-btn:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

/* --- CARDS & GRID --- */
.rooms-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

@media (min-width: 768px) {
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .rooms-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.room-card {
    background-color: var(--card-background);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Booked card styling */
.room-card.booked {
    filter: grayscale(15%);
}

.room-card.booked::after {
    content: "FULLY BOOKED";
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--danger-color);
    color: #ffffff;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.room-card.booked .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.15);
    z-index: 5;
    pointer-events: none;
}

/* --- PHOTO CAROUSEL --- */
.carousel-container {
    position: relative;
    width: 100%;
    height: 230px;
    background-color: #e5e5e5;
    overflow: hidden;
}

.carousel-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
    color: var(--text-primary);
}

.carousel-btn:hover {
    background-color: #ffffff;
    color: var(--primary-color);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.carousel-dot.active {
    background-color: #ffffff;
    width: 16px;
    border-radius: 4px;
}

/* Video Play Overlay button */
.video-overlay-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(26, 74, 58, 0.9);
    border: 2px solid var(--accent-color);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 12;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: var(--transition-normal);
}

.video-overlay-btn:hover {
    background-color: var(--accent-color);
    color: var(--primary-dark);
    transform: translate(-50%, -50%) scale(1.1);
}

/* --- CARD CONTENT --- */
.room-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.room-floor {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.room-name {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--primary-dark);
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: #f1ede4;
    color: var(--primary-dark);
}

.badge.ac {
    background-color: #e0f2fe;
    color: #0369a1;
}

.badge.non-ac {
    background-color: #f3f4f6;
    color: #4b5563;
}

.badge.attached-bath {
    background-color: #fae8ff;
    color: #a21caf;
}

.badge.shared-bath {
    background-color: #f5f5f5;
    color: #666666;
}

.badge.capacity-badge {
    background-color: #fef3c7;
    color: #b45309;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f1ede4;
}

.room-price-box {
    display: flex;
    flex-direction: column;
}

.room-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.1;
}

.room-price span {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.card-actions {
    display: flex;
    gap: 8px;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
    text-align: center;
    gap: 8px;
    min-height: 44px; /* Ensure 44px touch target */
}

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

.btn-primary:hover {
    background-color: var(--primary-light);
    color: #ffffff;
}

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

.btn-accent:hover {
    background-color: var(--accent-light);
    color: var(--primary-dark);
}

.btn-secondary {
    background-color: #f1ede4;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #e7dfd3;
}

.btn-success {
    background-color: var(--success-color);
    color: #ffffff;
}

.btn-danger {
    background-color: var(--danger-color);
    color: #ffffff;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn:disabled {
    background-color: #e5e5e5;
    color: var(--text-light);
    cursor: not-allowed;
    border-color: #e5e5e5;
}

/* --- DIALOG MODALS --- */
dialog {
    border: none;
    border-radius: var(--radius-card);
    padding: 0;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

dialog[open] {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

dialog[open]::backdrop {
    opacity: 1;
}

.modal-header {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--accent-color);
}

.modal-header h2 {
    font-size: 1.4rem;
    color: #ffffff;
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.modal-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.modal-body {
    padding: 24px;
}

/* Modal Tabs */
.modal-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
}

.modal-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition-fast);
}

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

.modal-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Pay Modal Details */
.modal-room-summary {
    background-color: var(--background-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 20px;
    border: 1px solid #f1ede4;
}

.modal-room-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.upi-app-btn {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: #ffffff !important;
    border-radius: var(--radius-btn);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.upi-app-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.4);
}

.qr-code-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
}

#qrcode-container {
    background-color: #ffffff;
    padding: 15px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 12px;
}

.payment-instructions {
    background-color: #fef3c7;
    border-left: 4px solid var(--accent-color);
    color: #92400e;
    padding: 12px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.85rem;
    margin: 20px 0;
}

.whatsapp-btn {
    background-color: #25d366;
    color: #ffffff !important;
}

.whatsapp-btn:hover {
    background-color: #22c35e;
}

/* --- ROOM DETAIL PAGE (room.php) --- */
.back-btn-box {
    margin: 20px 0;
}

.room-detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

@media (min-width: 1024px) {
    .room-detail-layout {
        grid-template-columns: 3fr 2fr;
    }
}

/* Gallery inside detail page */
.gallery-main {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-card);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
    background-color: #e5e5e5;
}

.gallery-main img, .gallery-main video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.gallery-thumb {
    width: 80px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.gallery-thumb:hover, .gallery-thumb.active {
    opacity: 1;
    border-color: var(--primary-color);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Room Details Info */
.room-details-card {
    background-color: #ffffff;
    border-radius: var(--radius-card);
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.room-title-section {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.room-title-section h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.room-desc-section {
    margin-bottom: 25px;
}

.room-desc-section h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.room-desc-section p {
    color: var(--text-secondary);
    white-space: pre-line; /* Renders line breaks saved in DB */
}

.detail-booking-card {
    background-color: var(--background-color);
    border-radius: var(--radius-card);
    padding: 24px;
    border: 1px solid #f1ede4;
    text-align: center;
}

.detail-price-box {
    margin-bottom: 20px;
}

.detail-price-box .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* --- FOOTER --- */
.site-footer {
    background-color: var(--primary-dark);
    color: #ffffff;
    padding: 40px 0 20px;
    margin-top: auto;
    border-top: 3px solid var(--accent-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-col h3 {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p, .footer-col li {
    font-size: 0.9rem;
    color: #cccccc;
    margin-bottom: 8px;
}

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

.footer-col .contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    background-color: rgba(255,255,255,0.08);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    margin-top: 10px;
}

.footer-col .contact-link:hover {
    background-color: var(--accent-color);
    color: var(--primary-dark);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 20px;
    font-size: 0.8rem;
    color: #888888;
}

/* --- FORM STYLING --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-dark);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-btn);
    background-color: #ffffff;
    transition: var(--transition-fast);
    outline: none;
    min-height: 44px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 74, 58, 0.15);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.radio-group {
    display: flex;
    gap: 15px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
}

.radio-label input {
    accent-color: var(--primary-color);
    width: 18px;
    height: 18px;
}

/* --- ADMIN PANEL SPECIFIC STYLES --- */
.admin-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@media (min-width: 1024px) {
    .admin-layout {
        flex-direction: row;
    }
}

/* Sidebar navigation */
.admin-sidebar {
    background-color: var(--primary-dark);
    color: #ffffff;
    width: 100%;
    padding: 30px 20px;
    border-bottom: 3px solid var(--accent-color);
}

@media (min-width: 1024px) {
    .admin-sidebar {
        width: 260px;
        min-height: 100vh;
        border-bottom: none;
        border-right: 3px solid var(--accent-color);
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        overflow-y: auto;
    }
}

.admin-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
}

.admin-logo h2 {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.4rem;
}

.admin-logo p {
    color: var(--accent-color);
    font-size: 0.75rem;
    font-weight: 600;
}

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

.admin-nav-item {
    margin-bottom: 8px;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-btn);
    color: #cccccc;
    font-weight: 500;
    transition: var(--transition-fast);
}

.admin-nav-link:hover, .admin-nav-link.active {
    color: var(--primary-dark);
    background-color: var(--accent-color);
}

.admin-main {
    flex-grow: 1;
    padding: 30px 20px;
    background-color: var(--background-color);
}

@media (min-width: 1024px) {
    .admin-main {
        margin-left: 260px;
    }
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-header h1 {
    font-size: 2rem;
    color: var(--primary-dark);
}

/* Stat Cards */
.stat-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #ffffff;
    border-radius: var(--radius-card);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
}

.stat-card.total::before { background-color: var(--primary-color); }
.stat-card.available::before { background-color: var(--success-color); }
.stat-card.booked::before { background-color: var(--danger-color); }

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.stat-card.total .stat-icon { background-color: #e0ece6; color: var(--primary-color); }
.stat-card.available .stat-icon { background-color: var(--success-light); color: var(--success-color); }
.stat-card.booked .stat-icon { background-color: var(--danger-light); color: var(--danger-color); }

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Admin Tables */
.table-container {
    background-color: #ffffff;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    overflow-x: auto;
    margin-bottom: 30px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 800px;
}

.admin-table th, .admin-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background-color: #fbfbf9;
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.9rem;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background-color: #fdfdfb;
}

.table-thumbnail {
    width: 60px;
    height: 45px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background-color: #e5e5e5;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.available {
    background-color: var(--success-light);
    color: var(--success-color);
}

.status-badge.booked {
    background-color: var(--danger-light);
    color: var(--danger-color);
}

/* Action Links in Tables */
.action-links {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 4px;
    font-weight: 600;
}

/* Admin Alert/Toast Messages */
.alert {
    padding: 12px 18px;
    border-radius: var(--radius-btn);
    margin-bottom: 25px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background-color: var(--success-light);
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.alert-danger {
    background-color: var(--danger-light);
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* --- PHOTO UPLOAD CONTAINER --- */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-card);
    padding: 30px;
    text-align: center;
    background-color: #fafaf8;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
}

.upload-area:hover, .upload-area.dragover {
    border-color: var(--primary-color);
    background-color: #f1ede4;
}

.upload-icon {
    font-size: 2.2rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.upload-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.preview-tile {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.preview-tile img, .preview-tile video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tile-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: rgba(220, 38, 38, 0.9);
    color: #ffffff;
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: var(--transition-fast);
}

.tile-remove:hover {
    background-color: var(--danger-color);
    transform: scale(1.1);
}

/* File loading progress bar */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background-color: var(--accent-color);
    width: 0%;
    transition: width 0.1s linear;
}

/* --- ADMIN LOGIN CONTAINER --- */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: var(--primary-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 0l5.85 14.15L50 10l-4.15 14.15L60 30l-14.15 5.85L50 50l-14.15-4.15L30 60l-5.85-14.15L10 50l4.15-14.15L0 30l14.15-5.85L10 10l14.15 4.15z' fill='%23c9a84c' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    padding: 20px;
}

.login-card {
    background-color: #ffffff;
    border-radius: var(--radius-card);
    width: 100%;
    max-width: 420px;
    padding: 40px 30px;
    box-shadow: var(--shadow-lg);
    border-top: 6px solid var(--accent-color);
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo h1 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.login-logo p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* --- UTILITIES --- */
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mt-30 { margin-top: 30px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-10 { gap: 10px; }
.w-full { width: 100%; }

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* --- MOBILE TARGET ENHANCEMENT --- */
@media (pointer: coarse) {
    .btn, .filter-btn, .carousel-btn {
        min-height: 46px;
    }
    
    .carousel-btn {
        width: 44px;
        height: 44px;
    }
}
