/* Base Styles */
:root {
    --primary: #4169E1;
    --primary-dark: #2a4fc7;
    --secondary: #FF5A5F;
    --dark: #2B2D42;
    --dark-gray: #4a4a4a;
    --medium-gray: #9e9e9e;
    --light-gray: #e0e0e0;
    --light: #F8F9FA;
    --white: #ffffff;
    --brand-dark: #0F1B35;
    --primary-gold: #D4AF37;
    --transition: all 0.3s ease;
}

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--reveal-delay, 0ms); will-change: opacity, transform; }
.reveal.reveal-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; transition-delay: 0s; opacity: 1; transform: none; }
}

/* Application: FAQ */
.application-page .faq-section { max-width: 800px; margin: 60px auto; text-align: center; }
.application-page .faq-title { font-size: 2rem; font-weight: 700; margin-bottom: 24px; color: var(--brand-dark); }
.application-page .faq-section details { text-align: left; background: var(--white); border: 1px solid var(--light-gray); border-radius: 12px; padding: 16px 20px; margin: 12px 0; }
.application-page .faq-section summary { cursor: pointer; font-weight: 600; color: var(--brand-dark); list-style: none; }
.application-page .faq-section summary::-webkit-details-marker { display: none; }
.application-page .faq-section summary::before { content: '▸'; display: inline-block; margin-right: 10px; color: var(--primary-gold); transition: transform 0.2s ease; }
.application-page .faq-section details[open] summary::before { transform: rotate(90deg); }
.application-page .faq-section .answer { margin-top: 10px; color: var(--medium-gray); line-height: 1.6; }

/* Prevent FOUC (Flash of Unstyled Content) */
body:not(.loaded):not(.admin):not(.login-page) {
    visibility: hidden;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    padding-top: 80px;
}

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

/* Header / Navbar */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #0F1B35;
    text-decoration: none;
}

.logo span {
    color: #D4AF37;
}

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

.nav-item {
    margin-left: 30px;
}

.nav-link {
    color: #0F1B35;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #D4AF37;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 180px 0 100px;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn i { margin-right: 8px; }

.btn-primary {
    background: var(--primary-gold);
    color: var(--brand-dark);
    border: 2px solid var(--primary-gold);
}
.btn-primary:hover {
    background: var(--primary-gold);
    color: var(--brand-dark);
    filter: brightness(0.95);
}

.btn-outline {
    background: transparent;
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
}
.btn-outline:hover {
    background: var(--primary-gold);
    color: var(--brand-dark);
    filter: brightness(0.95);
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
}

.section-title span { color: var(--primary-gold); }

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 15px auto 0;
}

/* Featured Listings Section */
.featured {
    padding: 100px 0 120px 0;
    background: #fafafa;
}

/* Listings Grid */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

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

.listing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.listing-img {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.listing-info {
    padding: 20px;
}

.listing-info h3 {
    margin: 0 0 10px;
    font-size: 1.3rem;
}

.listing-info p {
    margin: 5px 0;
    color: var(--medium-gray);
}

.price {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
    margin: 15px 0;
    display: block;
}

.tour-options {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.tour-options .btn {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-size: 0.9rem;
}

/* VR Section */
.vr-section {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.vr-container {
    max-width: 900px;
    margin: 0 auto;
}

.vr-embed {
    background: #000;
    height: 500px;
    border-radius: 8px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.vr-embed::before {
    content: "⬤ Click and drag to explore in 360°";
    position: absolute;
    bottom: 20px;
    color: var(--white);
    font-size: 0.9rem;
    opacity: 0.7;
}

.vr-embed p {
    color: var(--medium-gray);
    font-size: 1.2rem;
}

/* VR Plugin Missing Notification */
.vr-plugin-missing {
    background: linear-gradient(45deg, #4a4a4a 25%, #5a5a5a 25%, #5a5a5a 50%, #4a4a4a 50%, #4a4a4a 75%, #5a5a5a 75%, #5a5a5a);
    background-size: 20px 20px;
    border: 2px solid #666;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    color: #ccc;
    font-family: Arial, sans-serif;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.3);
}

.vr-plugin-missing .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: #666;
    color: #ccc;
    border: 1px solid #888;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.vr-plugin-missing .close-btn:hover {
    background: #777;
    color: #fff;
}

.vr-plugin-missing .plugin-icon {
    width: 80px;
    height: 80px;
    background: #c41e3a;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid #fff;
    box-shadow: 0 3px 15px rgba(0,0,0,0.4);
}

.vr-plugin-missing .plugin-icon::before {
    content: "⊘";
    color: white;
    font-size: 40px;
    font-weight: bold;
}

.vr-plugin-missing h3 {
    color: #ddd;
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: normal;
}

.vr-plugin-missing p {
    color: #bbb;
    margin: 0 0 20px 0;
    font-size: 14px;
    line-height: 1.4;
}

.vr-plugin-missing .download-btn {
    background: #c41e3a;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
}

.vr-plugin-missing .download-btn:hover {
    background: #a01729;
}

/* In-Person Section */
.in-person-section {
    padding: 80px 0;
    background: var(--light);
}

.in-person-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.in-person-text {
    flex: 1;
    text-align: left;
}

.in-person-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.in-person-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.benefits-list {
    list-style: none;
    margin: 30px 0;
}

.benefits-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.benefits-list i {
    color: var(--primary);
    margin-right: 10px;
    font-size: 1.2rem;
}

.in-person-image {
    flex: 1;
}

.in-person-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    overflow: auto;
}

.modal-content {
    background: var(--white);
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalopen 0.5s;
}

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

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--medium-gray);
    transition: color 0.3s;
}

.close:hover {
    color: var(--dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.tour-option-btn {
    flex: 1;
    padding: 12px;
    text-align: center;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--white);
}

.tour-option-btn:hover {
    border-color: var(--primary);
}

.tour-option-btn.active {
    border-color: var(--primary);
    background: rgba(65, 105, 225, 0.1);
}

.btn-book {
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    width: 100%;
    transition: background 0.3s;
}

.btn-book:hover {
    background: #e04a50;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Footer */
footer {
    background: #0F1B35;
    color: var(--white);
    padding: 60px 0 30px;
}

/* Application: используем глобальные отступы футера, как в documentation */

/* Application: нет переопределений футера; используем глобальные значения как на index.html */

/* Удалены страничные переопределения футера для Application: используем глобальные значения */

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
    align-items: start;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-logo span {
    color: #D4AF37;
}

.footer-text {
    margin-bottom: 20px;
    color: #E5DECC;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    color: #D4AF37;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #E5DECC;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #D4AF37;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p, 
.footer-section a {
    color: var(--light-gray);
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-section i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.footer-contact {
    display: block;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #E5DECC;
}

.footer-contact-item i {
    margin-right: 10px;
    color: #D4AF37;
    width: 20px;
    text-align: center;
}

.footer-contact .footer-title {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-contact-item span {
    display: block;
}

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

/* Login Page Styles */
body.login-page {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

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

.login-header {
    text-align: center;
    padding: 40px 30px 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.login-logo {
    height: 60px;
    margin-bottom: 20px;
}

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

.login-header p {
    color: var(--medium-gray);
    font-size: 0.95rem;
}

.login-form {
    padding: 30px;
}

.login-form .form-group {
    margin-bottom: 25px;
}

.login-form label {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 8px;
}

.login-form label i {
    margin-right: 8px;
    width: 16px;
    color: var(--primary);
}

.login-form input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.login-error {
    background: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 0.9rem;
    border-left: 4px solid #c33;
}

.login-footer {
    padding: 20px 30px;
    text-align: center;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.login-footer a {
    color: var(--medium-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.login-footer a:hover {
    color: var(--primary);
}

.login-footer i {
    margin-right: 6px;
}

/* Admin Panel Styles */
body.admin {
    background: #f8f9fa;
}

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

.admin-sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--dark) 0%, #1a1a1a 100%);
    color: var(--white);
    padding: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

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

.admin-logo img {
    height: 45px;
    margin-bottom: 10px;
}

.admin-logo h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin: 0;
}

.admin-nav {
    flex: 1;
    padding: 20px 0;
}

.admin-nav a {
    color: rgba(255,255,255,0.8);
    padding: 15px 25px;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.admin-nav a i {
    margin-right: 12px;
    width: 20px;
    font-size: 1.1rem;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-left-color: var(--primary);
}

.admin-user {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.user-info i {
    margin-right: 8px;
    color: var(--primary);
}

.logout-btn {
    width: 100%;
    padding: 10px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
}

.logout-btn:hover {
    background: rgba(255,255,255,0.2);
}

.admin-main {
    flex: 1;
    padding: 0;
    overflow-y: auto;
}

.admin-header {
    background: var(--white);
    padding: 30px 40px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content h1 {
    font-size: 2rem;
    color: var(--dark);
    margin: 0 0 5px 0;
    font-weight: 700;
}

.header-subtitle {
    color: var(--medium-gray);
    font-size: 1rem;
    margin: 0;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

#listings-management {
    padding: 30px 40px;
    margin-top: 20px;
}

.listings-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid var(--primary);
}

.stat-card i {
    font-size: 2rem;
    color: var(--primary);
    background: rgba(52, 152, 219, 0.1);
    padding: 15px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
}

.stat-label {
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin-top: 2px;
}

.admin-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.empty-state i {
    font-size: 4rem;
    color: var(--light-gray);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--medium-gray);
    margin-bottom: 25px;
}

.admin-listing-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}

.admin-listing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.admin-listing-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.listing-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(40, 167, 69, 0.9);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.admin-listing-info {
    padding: 20px;
}

.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.listing-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    flex: 1;
}

.listing-price {
    background: var(--primary);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.listing-details {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.listing-details span {
    color: var(--medium-gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.listing-details i {
    color: var(--primary);
    width: 14px;
}

.listing-location {
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.listing-location i {
    color: var(--primary);
}

.listing-description {
    color: var(--dark);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-listing-actions {
    display: flex;
    gap: 10px;
}

.btn-edit {
    flex: 1;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-edit:hover {
    background: var(--primary-dark);
}

.btn-delete {
    background: #dc3545;
    color: var(--white);
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-delete:hover {
    background: #c82333;
}

.admin-listing-info {
    padding: 15px;
}

.admin-listing-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.admin-listing-info .description {
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin-top: 10px;
    line-height: 1.4;
}

.admin-listing-meta {
    display: flex;
    gap: 15px;
    margin: 10px 0;
    font-size: 0.9rem;
    color: var(--medium-gray);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--medium-gray);
}

.close:hover {
    color: var(--dark);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

.image-preview-container {
    margin-top: 10px;
    text-align: center;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 10px;
    background: #f8f9fa;
}

.image-preview-container img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.notification-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.notification-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

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

.notification-content i {
    font-size: 1.2rem;
}

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

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.btn-secondary {
    background: var(--light-gray);
    color: var(--dark);
}

.btn-secondary:hover {
    background: var(--medium-gray);
    color: var(--white);
}

.bookings-table-container {
    overflow-x: auto;
}

.bookings-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.bookings-table th, 
.bookings-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.bookings-table th {
    background: var(--light);
    font-weight: 600;
}

.bookings-table tr:hover {
    background: rgba(65, 105, 225, 0.05);
}

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

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-confirmed {
    background: #d4edda;
    color: #155724;
}

.status-canceled {
    background: #f8d7da;
    color: #721c24;
}

/* Responsive */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }
}

@media (max-width: 992px) {
    .in-person-content {
        flex-direction: column;
    }
    
    .in-person-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .listing-grid {
        grid-template-columns: 1fr;
    }
    
    .vr-embed {
        height: 350px;
    }
    
    .admin-container {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        padding: 15px;
    }
    
    .admin-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .admin-nav a {
        white-space: nowrap;
    }
}

@media (max-width: 576px) {
    .nav-links {
        display: none;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Page: Application */
body.application-page {
    font-family: 'Inter', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    font-weight: 400;
}

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

.application-page .main-content {
    background: var(--white);
    padding: 80px 0;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
}

.application-page h1 {
    color: var(--brand-dark);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
}

.application-page h2 {
    color: var(--brand-dark);
    font-size: 2rem;
    font-weight: 700;
    margin: 40px 0 20px;
}

.application-page h1,
.application-page h2,
.application-page h3 {
    font-family: 'Playfair Display', serif;
}

.application-page p {
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Intro paragraph under H1 */
.application-page .main-content > .container > p:first-of-type {
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.application-page .highlight-box {
    background: var(--light);
    padding: 30px;
    margin: 40px 0;
    border-radius: 12px;
}

.application-page .highlight-box .container { text-align: center; }
.application-page .highlight-box h2 { text-align: center; font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--brand-dark); margin-bottom: 12px; }
.application-page .highlight-box p { text-align: center; color: var(--dark-gray); }
.application-page .highlight-box p:first-of-type { color: var(--brand-dark); font-weight: 600; }
.application-page .highlight-box ul { list-style: none; padding-left: 0; margin: 16px 0 12px; text-align: center; }
.application-page .highlight-box li { margin: 8px 0; }
.application-page .highlight-box li::before { content: '•'; color: var(--primary-gold); margin-right: 10px; font-size: 1.1em; vertical-align: middle; }
.application-page .highlight-box p:last-of-type { margin-top: 18px; font-weight: 600; color: var(--primary-dark); }



.application-page .download-section {
    background: var(--light);
    padding: 30px;
    text-align: center;
    margin: 40px 0;
}

.application-page .download-section .container { text-align: center; }
.application-page .download-section h2 { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--brand-dark); margin-bottom: 12px; }
.application-page .download-section p { color: var(--dark-gray); }
.application-page .download-section .btn { margin-top: 12px; }
.application-page .download-section .password-note { margin-top: 8px; color: var(--medium-gray); font-size: .95rem; }

.application-page .download-section p:last-of-type {
    margin-top: 30px;
    font-size: 0.95rem;
}

.application-page .steps {
    margin: 40px 0;
}

.application-page .step {
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 16px;
    align-items: center;
    margin-bottom: 30px;
}

/* Center the 3-step section */
.application-page .section .container > h2 { text-align: center; }
/* Лесенка: три колонки */
.application-page .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.application-page .step { justify-content: initial; align-items: center; max-width: none; width: 100%; }
.application-page .steps .step:nth-child(1) { justify-self: start; }
.application-page .steps .step:nth-child(2) { justify-self: center; }
.application-page .steps .step:nth-child(3) { justify-self: end; }
.application-page .steps .step:nth-child(1) { margin-top: 0; }
.application-page .steps .step:nth-child(2) { margin-top: 96px; }
.application-page .steps .step:nth-child(3) { margin-top: 192px; }
.application-page .step > div:last-child { text-align: center; }
.application-page .steps .step:nth-child(2) > div:last-child { text-align: center; }
.application-page .steps .step:nth-child(3) > div:last-child { text-align: center; }
.application-page .step h3 { margin: 0; font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: 700; color: var(--brand-dark); }
.application-page .step p { margin-top: 6px; color: var(--dark-gray); }

/* FAQ accordion animations */
.application-page .faq-section details {
    background: #fff;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.06);
    padding: 14px 18px;
    margin: 12px 0;
}
.application-page .faq-section summary {
    list-style: none;
    cursor: pointer;
    font-weight: 700;
    color: var(--brand-dark);
    position: relative;
}
.application-page .faq-section summary::-webkit-details-marker { display: none; }
.application-page .faq-section summary::after {
    content: '▾';
    position: absolute;
    right: 0;
    top: 0;
    transform: rotate(-90deg);
    transition: transform 520ms cubic-bezier(.22,.61,.36,1);
    color: var(--primary-gold);
}
.application-page .faq-section details[open] summary::after { transform: rotate(0deg); }

.application-page .faq-section details .answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 560ms cubic-bezier(.22,.61,.36,1), opacity 560ms cubic-bezier(.22,.61,.36,1), transform 560ms cubic-bezier(.22,.61,.36,1);
    opacity: 0;
    transform: translateY(-4px);
    margin-top: 8px;
}
.application-page .faq-section details[open] .answer {
    grid-template-rows: 1fr;
    opacity: 1;
    transform: translateY(0);
}
.application-page .faq-section details .answer > * { overflow: hidden; }
.application-page .faq-section details .answer p { margin: 0; color: var(--dark-gray); }

@media (prefers-reduced-motion: reduce) {
    .application-page .faq-section summary::after,
    .application-page .faq-section details .answer {
        transition: none;
    }
}

.application-page .step-number {
    flex: 0 0 40px;
    height: 40px;
    background: var(--primary-gold);
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 0;
    border-radius: 0;
    font-weight: 700;
}

@media (max-width: 768px) {
    .application-page h1 { font-size: 1.8rem; }
    .application-page .highlight-box,
    .application-page .download-section { padding: 20px; }
    .application-page .steps { grid-template-columns: 1fr; }
    .application-page .steps .step { justify-self: center; margin-top: 0; }
    .application-page .step > div:last-child { text-align: center; }
}

/* Page: Documentation */
body.documentation-page {
    background: #FFFFFF;
    min-height: 100vh;
}

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

.documentation-page .hero {
    background: linear-gradient(135deg, #F8FAFC 0%, #FFFFFF 100%);
    padding: 100px 0 80px;
    text-align: center;
}

.documentation-page .hero-content { max-width: 800px; margin: 0 auto; }

.documentation-page .hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--brand-dark);
    line-height: 1.2;
}

.documentation-page .hero p {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: #8C8C8C;
    line-height: 1.6;
}

.documentation-page .badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.documentation-page .badge {
    background: #FFFFFF;
    padding: 15px 25px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    font-size: 0.9rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.documentation-page .badge i { color: var(--primary-gold); }

.documentation-page .section { padding: 80px 0; }

.documentation-page .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--brand-dark);
}

/* Документация: заголовки как на главной */
.documentation-page h1,
.documentation-page h2,
.documentation-page h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--brand-dark);
}

/* Footer titles must stay white across pages */
footer .footer-title,
.footer .footer-title {
    color: #FFFFFF !important;
}

.documentation-page .section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #8C8C8C;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.documentation-page .about-section { background: #FFFFFF; }

.documentation-page .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.documentation-page .about-text { font-size: 1rem; line-height: 1.8; color: var(--dark); }
.documentation-page .about-text p { margin-bottom: 1.5rem; }

.documentation-page .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.documentation-page .stat-card { text-align: center; padding: 32px; background: var(--light); border-radius: 12px; border: 1px solid var(--light-gray); }
.documentation-page .stat-number { font-size: 2.5rem; font-weight: 600; color: var(--primary-gold); margin-bottom: 8px; }
.documentation-page .stat-label { color: var(--medium-gray); font-size: 0.9rem; font-weight: 500; }

.documentation-page .documents-section { background: var(--light); }
.documentation-page .documents-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 24px; }
.documentation-page .document-card { background: var(--white); padding: 32px; border-radius: 12px; border: 1px solid var(--light-gray); transition: transform 0.2s ease, box-shadow 0.2s ease; display: flex; flex-direction: column; height: 100%; }
.documentation-page .document-card:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.documentation-page .document-icon { font-size: 2rem; color: var(--primary-gold); margin-bottom: 20px; }
.documentation-page .document-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 12px; color: var(--dark); }
.documentation-page .document-card p { color: var(--medium-gray); margin-bottom: 24px; line-height: 1.6; }
.documentation-page .document-card .btn { margin-top: auto; align-self: flex-start; }

/* Специальные кнопки документации: не трогаем глобальную .btn */
/* Используем глобальные .btn стили на странице документации */

.documentation-page .compliance-section { background: #FFFFFF; }
.documentation-page .compliance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.documentation-page .compliance-item { text-align: center; padding: 32px; }
.documentation-page .compliance-icon { font-size: 2.5rem; color: var(--primary-gold); margin-bottom: 20px; }
.documentation-page .compliance-item h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 12px; color: var(--dark); }

.documentation-page .process-section { background: var(--light); }
.documentation-page .process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 32px; margin-top: 60px; }
.documentation-page .process-step { text-align: center; }
.documentation-page .step-number { width: 50px; height: 50px; background: var(--primary-gold); color: var(--brand-dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-weight: 600; }

.documentation-page .partners-section { background: var(--white); }
.documentation-page .partners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-top: 60px; opacity: 0.7; }
.documentation-page .partner-logo { text-align: center; font-weight: 600; color: var(--medium-gray); font-size: 1.1rem; }

@media (max-width: 768px) {
    .documentation-page .hero h1 { font-size: 2.25rem; }
    .documentation-page .about-grid { grid-template-columns: 1fr; }
    .documentation-page .stats-grid { grid-template-columns: 1fr; }
    .documentation-page .documents-grid { grid-template-columns: 1fr; }
    .documentation-page .badges { flex-direction: column; align-items: center; }
}

/* =========================
   Admin: Dark Theme (restored)
   ========================= */
body.admin {
    --admin-bg: #0E1116;
    --admin-panel: #11151C;
    --admin-surface: #121821;
    --admin-border: rgba(255,255,255,0.08);
    --admin-text: #E6E8EB;
    --admin-subtle: #9AA4B2;
    --admin-muted: #7D8896;
    --admin-shadow: 0 10px 30px rgba(0,0,0,0.35);
    background: var(--admin-bg);
    color: var(--admin-text);
    min-height: 100vh;
}

.admin .admin-container { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }

.admin .admin-sidebar {
    background: linear-gradient(180deg, #0C1016 0%, #0A0F14 100%);
    border-right: 1px solid var(--admin-border);
    padding: 22px 18px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin .admin-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.admin .admin-logo img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; }
.admin .admin-logo h3 { font-family: 'Playfair Display', serif; font-weight: 700; color: #fff; letter-spacing: .3px; }

.admin .admin-nav { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.admin .admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.admin .admin-nav a i { color: var(--primary-gold); }
.admin .admin-nav a:hover { background: rgba(255,255,255,0.06); border-color: var(--admin-border); }
.admin .admin-nav a.active { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.14); }

.admin .admin-user { margin-top: 12px; border-top: 1px solid var(--admin-border); padding-top: 14px; }
.admin .admin-user .user-info { display: flex; align-items: center; gap: 10px; color: var(--admin-subtle); margin-bottom: 10px; }
.admin .logout-btn {
    width: 100%;
    background: transparent;
    color: #fff;
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}
.admin .logout-btn:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.18); }

.admin .admin-main { background: var(--admin-panel); padding: 0 28px 28px; }
.admin .admin-main > :first-child { margin-top: 0; }
.admin .admin-header { margin-top: 0; }
.admin .admin-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; background: var(--admin-surface); border: 1px solid var(--admin-border); border-radius: 12px; padding: 16px 18px; box-shadow: var(--admin-shadow); }
.admin .admin-header h1 { font-family: 'Playfair Display', serif; color: #fff; font-weight: 700; }
.admin .admin-header .header-subtitle { color: var(--admin-muted); margin-top: 6px; }

.admin .btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; text-decoration: none; font-weight: 600; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .02s; }
.admin .btn:active { transform: translateY(1px); }
.admin .btn-primary { background: var(--primary-gold); color: var(--brand-dark); }
.admin .btn-primary:hover { filter: brightness(1.05); }
.admin .btn-secondary { background: transparent; color: var(--admin-text); border-color: var(--admin-border); }
.admin .btn-secondary:hover { background: rgba(255,255,255,0.06); }
.admin .btn-edit { background: rgba(255,255,255,0.06); color: var(--admin-text); border: 1px solid var(--admin-border); }
.admin .btn-edit:hover { background: rgba(255,255,255,0.10); }
.admin .btn-delete { background: transparent; color: #F07178; border: 1px solid rgba(240,113,120,0.28); }
.admin .btn-delete:hover { background: rgba(240,113,120,0.10); border-color: rgba(240,113,120,0.42); }

.admin .listings-stats { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 16px; margin-bottom: 18px; }
.admin .stat-card { display: flex; align-items: center; gap: 12px; background: var(--admin-surface); border: 1px solid var(--admin-border); border-radius: 12px; padding: 16px; box-shadow: var(--admin-shadow); }
.admin .stat-card i { font-size: 1.25rem; color: var(--primary-gold); }
.admin .stat-number { font-size: 1.4rem; font-weight: 700; color: #fff; }
.admin .stat-label { color: var(--admin-muted); font-size: 0.9rem; font-weight: 500; }

.admin .admin-listings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; margin-top: 10px; }

.admin .admin-listing-card { background: var(--admin-surface); border: 1px solid var(--admin-border); border-radius: 14px; overflow: hidden; box-shadow: var(--admin-shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; display: flex; flex-direction: column; }
.admin .admin-listing-card:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0,0,0,0.45); border-color: rgba(255,255,255,0.12); }

/* Icons in admin listing cards */
.admin .listing-details i,
.admin .listing-location i,
.admin .listing-badge i { color: var(--primary-gold); }
/* let icons inside buttons inherit button text color */
.admin .admin-listing-actions .btn i { color: inherit; }
.admin .btn-delete i { color: #F07178; }
.admin .btn-edit i { color: var(--admin-text); }

.admin .admin-listing-image { position: relative; height: 170px; background-size: cover; background-position: center; }
.admin .listing-badge { position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,0.5); color: #fff; font-size: 0.8rem; padding: 6px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,0.18); }
.admin .listing-badge { display: none !important; }

.admin .admin-listing-info { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.admin .listing-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.admin .listing-header h3 { font-size: 1.06rem; font-weight: 700; color: #fff; }
.admin .listing-price { background: var(--primary-gold); color: var(--brand-dark); font-weight: 700; padding: 4px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; line-height: 1; border: 1px solid rgba(0,0,0,0.1); }
.admin .listing-details { display: flex; flex-wrap: wrap; gap: 12px 16px; color: var(--admin-subtle); font-size: 0.95rem; margin-bottom: 8px; }
.admin .listing-location { color: var(--admin-muted); margin-bottom: 8px; }
.admin .listing-description { color: var(--admin-subtle); margin-bottom: 14px; line-height: 1.6; }
.admin .admin-listing-actions { display: flex; gap: 10px; margin-top: auto; }

/* Modal */
.admin .modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); }
.admin .modal-content { background: var(--admin-surface); margin: 60px auto; padding: 20px; border: 1px solid var(--admin-border); width: min(720px, calc(100% - 32px)); border-radius: 14px; color: var(--admin-text); box-shadow: var(--admin-shadow); }
.admin .modal-content h2 { font-family: 'Playfair Display', serif; color: #fff; margin-bottom: 10px; }
.admin .modal .close { color: #fff; float: right; font-size: 28px; font-weight: bold; cursor: pointer; }
.admin .modal .close:hover { color: var(--primary-gold); }

/* Form */
.admin .form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.admin .form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.admin .form-group label { color: var(--admin-subtle); font-weight: 600; font-size: 0.95rem; }
.admin input[type="text"],
.admin input[type="number"],
.admin textarea {
    background: #0E141B;
    color: var(--admin-text);
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    padding: 10px 12px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.admin textarea { resize: vertical; }
.admin input:focus,
.admin textarea:focus { border-color: rgba(255,255,255,0.2); box-shadow: 0 0 0 3px rgba(212,175,55,0.15); }

.admin .form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }

/* Empty state */
.admin .empty-state { text-align: center; background: var(--admin-surface); border: 1px solid var(--admin-border); border-radius: 14px; padding: 32px; color: var(--admin-subtle); }
.admin .empty-state i { font-size: 2rem; color: var(--primary-gold); margin-bottom: 8px; }
.admin .empty-state h3 { color: #fff; margin: 6px 0 6px; }

/* Notifications */
.admin .notification { position: fixed; right: 20px; bottom: 20px; background: var(--admin-surface); color: var(--admin-text); border: 1px solid var(--admin-border); padding: 12px 16px; border-radius: 12px; box-shadow: var(--admin-shadow); z-index: 1200; }
.admin .notification-success { border-color: rgba(34,197,94,0.35); }
.admin .notification-error { border-color: rgba(240,113,120,0.35); }
.admin .notification .notification-content { display: flex; align-items: center; gap: 10px; }
.admin .notification i { color: var(--primary-gold); }

/* Responsive */
@media (max-width: 1024px) { .admin .admin-container { grid-template-columns: 240px 1fr; } }
@media (max-width: 840px)  { .admin .admin-container { grid-template-columns: 1fr; } .admin .admin-sidebar { position: relative; height: auto; } }
@media (max-width: 680px)  { .admin .form-row { grid-template-columns: 1fr; } .admin .admin-listings-grid { grid-template-columns: 1fr; } }

/* =========================
   Login Page: Dark Theme
   ========================= */
body.login-page {
  --login-bg: #0E1116;
  --login-panel: #11151C;
  --login-surface: #121821;
  --login-border: rgba(255,255,255,0.08);
  --login-text: #E6E8EB;
  --login-subtle: #9AA4B2;
  --login-muted: #7D8896;
  --login-shadow: 0 10px 30px rgba(0,0,0,0.35);
  background: var(--login-bg);
  color: var(--login-text);
  min-height: 100vh;
}

.login-page .login-container { min-height: 100vh; display: grid; place-items: center; padding: 24px; }

.login-page .login-card { width: min(520px, 100%); background: var(--login-panel); border: 1px solid var(--login-border); border-radius: 14px; box-shadow: var(--login-shadow); padding: 22px; }

.login-page .login-header { text-align: center; margin-bottom: 16px; background: transparent; border: none; border-radius: 12px; padding: 16px; box-shadow: none; }
.login-page .login-logo { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; display: block; margin: 0 auto 10px; }
.login-page .login-header h1 { font-family: 'Playfair Display', serif; color: #fff; font-weight: 700; margin: 0 0 6px; }
.login-page .login-header p { color: var(--login-muted); margin: 0; }

.login-page .login-form { display: grid; gap: 12px; }
.login-page .form-group { display: grid; gap: 6px; }
.login-page .form-group label { color: var(--login-subtle); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.login-page .form-group label i { color: var(--primary-gold); }

.login-page input[type="text"],
.login-page input[type="password"] {
  background: #0E141B;
  color: var(--login-text);
  border: 1px solid var(--login-border);
  border-radius: 10px;
  padding: 12px 12px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.login-page input:focus { border-color: rgba(255,255,255,0.2); box-shadow: 0 0 0 3px rgba(212,175,55,0.15); }

.login-page .login-btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; font-weight: 700; background: var(--primary-gold); color: var(--brand-dark); transition: filter .2s ease; }
.login-page .login-btn:hover { filter: brightness(1.05); }
.login-page .login-btn:disabled { opacity: .7; cursor: not-allowed; }

.login-page .login-error { margin-top: 8px; background: var(--login-surface); border: 1px solid rgba(240,113,120,0.35); color: #F07178; border-radius: 10px; padding: 10px 12px; }

.login-page .login-footer { margin-top: 14px; text-align: center; color: var(--login-text); background: transparent !important; border: none !important; padding: 0; box-shadow: none; }
.login-page .login-footer a { color: var(--login-text) !important; text-decoration: none; border: 1px solid var(--login-border) !important; background: var(--login-surface) !important; padding: 10px 12px; border-radius: 10px; display: inline-flex; align-items: center; gap: 8px; transition: background .2s ease, border-color .2s ease; }
.login-page .login-footer a i { color: var(--primary-gold); }
.login-page .login-footer a:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.18); }

@media (max-width: 460px) { .login-page .login-card { padding: 16px; } .login-page .login-header { padding: 12px; } }