/* =========================================
   GLOBAL VARIABLES & RESET
   ========================================= */
:root {
    --color-bg: #F9F7F2;          
    --color-text: #2C3333;       
    --color-primary: #2C5F5D;    
    --color-primary-hover: #1E4543;
    --color-accent: #D4A373;     
    --color-white: #FFFFFF;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --spacing-container: 1200px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-primary);
}

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

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

.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--color-primary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

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

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
}

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

/* =========================================
   HEADER & NAVIGATION (ВСЕГДА ТЁМНЫЙ)
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #1a3d3b;  /* Темно-изумрудный, как футер */
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--color-accent);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
}

.header .btn {
    background-color: var(--color-accent);  /* Золотистый цвет */
    color: #ffffff !important;
    border-color: var(--color-accent) !important;
    padding: 10px 24px !important;
}

.header .btn:hover {
    background-color: #b88a5c;
    border-color: #b88a5c;
}

.nav-link.active {
    position: relative;
    color: var(--color-accent) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
}

.btn.nav-link.active::after {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: #1a3d3b;  
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        color: #ffffff;
        font-size: 1.2rem;
    }
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.38), rgba(0,0,0,0.48)), 
                url('../images/phuket-hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--color-white);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* =========================================
   SECTIONS GENERAL
   ========================================= */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    max-width: 600px;
    margin: 0 auto 60px;
}

/* =========================================
   FEATURES / USP
   ========================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.feature-item h3 {
    font-size: 1.2rem;
    margin: 20px 0 10px;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--color-accent);
}


.feature-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;                    
    object-fit: cover;                     
    margin: 0 auto 25px;                  
    display: block;
    border: 4px solid var(--color-white);  
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); 
    transition: var(--transition);
}


.feature-item:hover .feature-img {
    transform: scale(1.05);                
    border-color: var(--color-accent);    
}


.feature-item {
    text-align: center;
}

/* =========================================
   ROOMS PREVIEW
   ========================================= */
.rooms-section {
    background-color: var(--color-white);
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.room-card {
    background: var(--color-bg);
    overflow: hidden;
    transition: var(--transition);
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.room-image {
    height: 300px;
    overflow: hidden;
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.room-info {
    padding: 30px;
}

.room-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.room-info p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.room-price {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    display: block;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: #1a3d3b;
    color: #ffffff;
    padding: 80px 0 40px;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col p, 
.footer-col a {
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-col a:hover {
    color: #ffffff;
    text-decoration: none;
    cursor: default;
}

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

.footer,
.footer * {
    transition: none !important;
    animation: none !important;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--color-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        color: var(--color-text);
        font-size: 1.2rem;
    }
    
    .rooms-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   ABOUT PAGE SPECIFIC STYLES
   ========================================= */

/* Story Section (2 columns) */
.about-story-section {
    padding: 80px 0;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.story-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.story-content h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: var(--color-primary);
}

.story-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

/* Values Section */
.values-section {
    background-color: var(--color-white);
    padding: 100px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.value-item {
    padding: 20px;
}


.value-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 25px;
    display: block;
    border: 4px solid var(--color-bg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.value-item:hover .value-img {
    transform: scale(1.05);
    border-color: var(--color-accent);
}

.value-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.value-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(44, 95, 93, 0.85), rgba(44, 95, 93, 0.9)), 
                url('https://images.unsplash.com/photo-1540541338287-41700207dee6?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    padding: 100px 0;
    text-align: center;
    color: var(--color-white);
}

.cta-content h2 {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0.9;
}

.cta-section .btn {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
    font-size: 16px;
    padding: 16px 40px;
}

.cta-section .btn:hover {
    background-color: #b88a5c;
    border-color: #b88a5c;
}

@media (max-width: 900px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .story-image img {
        height: 350px;
    }
    
    .story-content {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .cta-content h2 {
        font-size: 2rem;
    }
}

/* =========================================
   CONTACT PAGE SPECIFIC STYLES
   ========================================= */

/* Уменьшенный заголовок для внутренних страниц */
.page-hero {
    padding: 160px 0 80px;
    background-color: var(--color-bg);
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 1.1rem;
    color: #666;
}

/* Сетка контактных данных */
.contact-details-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    text-align: center;
}

.contact-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.contact-card p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.contact-link {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.contact-link:hover {
    color: var(--color-accent);
}

/* Секция с картой */
.map-section {
    background-color: var(--color-white);
    padding: 80px 0;
}

.map-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.map-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.map-info p {
    color: #555;
    margin-bottom: 30px;
    line-height: 1.7;
}

.direction-list {
    list-style: none;
    margin-bottom: 30px;
}

.direction-list li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
    color: #555;
    line-height: 1.6;
}

.direction-list li::before {
    content: "•";
    color: var(--color-accent);
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.map-container iframe {
    filter: grayscale(20%) contrast(1.1); /* Легкая стилизация карты под общий тон */
}

/* Адаптивность для мобильных */
@media (max-width: 900px) {
    .map-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .map-container {
        height: 350px;
        order: -1; /* Карта будет сверху на мобильных */
    }
}

/* =========================================
   LEGAL PAGES (PRIVACY / RULES)
   ========================================= */

.legal-content-section {
    padding: 80px 0;
}

.legal-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.legal-intro {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 2px solid rgba(0,0,0,0.05);
}

.lead-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #444;
    font-weight: 300;
}

.legal-section {
    margin-bottom: 50px;
}

.legal-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.legal-section p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.legal-section ul {
    margin: 20px 0;
    padding-left: 30px;
}

.legal-section li {
    line-height: 1.8;
    color: #555;
    margin-bottom: 12px;
}

.legal-section strong {
    color: var(--color-text);
    font-weight: 600;
}

.legal-section a {
    color: var(--color-primary);
    text-decoration: underline;
}

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

.legal-contact {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid rgba(0,0,0,0.05);
}

.legal-contact h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-box {
    background: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--color-accent);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-top: 20px;
}

.contact-box p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.contact-box a {
    color: var(--color-primary);
    font-weight: 500;
}

/* Адаптивность */
@media (max-width: 768px) {
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .lead-text {
        font-size: 1.1rem;
    }
}

/* =========================================
   RULES PAGE SPECIFIC STYLES
   ========================================= */

/* Улучшаем отображение эмодзи в заголовках */
.legal-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Выделяем важные предупреждения */
.legal-section em {
    color: var(--color-accent);
    font-style: italic;
}

/* Стилизуем вложенные списки */
.legal-section ul ul {
    margin-top: 10px;
    padding-left: 20px;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .legal-section h2 {
        font-size: 1.4rem;
        flex-wrap: wrap;
    }
}

/* =========================================
   BOOKING PAGE (book.html only)
   ========================================= */

.booking-section {
    padding: 60px 0 100px;
    background-color: var(--color-bg);
}

.booking-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: start;
}

.booking-rooms .section-title,
.booking-form-card .section-title {
    text-align: left;
    font-size: 1.8rem;
    margin-bottom: 30px;
}

/* ---------- Room cards ---------- */
.booking-room-card {
    margin-bottom: 30px;
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color .3s ease, box-shadow .3s ease;
}

.booking-room-card.selected {
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(44, 95, 93, 0.15);
}

.room-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.room-label {
    display: block;
    cursor: pointer;
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background-color: rgba(44, 95, 93, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.room-header h3 {
    font-size: 1.3rem;
    margin: 0;
}

.room-price-display {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    white-space: nowrap;
}

.room-price-display small {
    font-size: .9rem;
    font-weight: 400;
    color: #666;
}

/* ---------- Photo slider (arrows only) ---------- */
.photo-scroll-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.photo-scroll {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.photo-scroll::-webkit-scrollbar {
    display: none;
}

.photo-scroll img {
    flex: 0 0 100%;
    width: 100%;
    height: 320px;
    object-fit: cover;
    scroll-snap-align: start;
    user-select: none;
    -webkit-user-drag: none;
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--color-primary);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    transition: opacity .25s ease, background-color .25s ease, color .25s ease;
}

.scroll-arrow:hover {
    background-color: #ffffff;
    color: var(--color-accent);
}

.scroll-left  { left: 15px; }
.scroll-right { right: 15px; }

.scroll-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ---------- Room features ---------- */
.room-features {
    list-style: none;
    padding: 20px 25px;
    margin: 0;
}

.room-features li {
    padding: 8px 0;
    color: #555;
    font-size: .95rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.room-features li:last-child {
    border-bottom: none;
}

/* ---------- Booking form ---------- */
.booking-form-card {
    background: var(--color-white);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 110px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fafafa;
    font-family: var(--font-body);
    font-size: .95rem;
    color: var(--color-text);
    transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background-color: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(44, 95, 93, 0.1);
}

/* ---------- Checkboxes ---------- */
.checkbox-group {
    margin: 25px 0;
}

.custom-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    font-size: .9rem;
    color: #555;
    cursor: pointer;
}

.custom-checkbox input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.custom-checkbox a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* ---------- Summary ---------- */
.booking-summary {
    background-color: rgba(44, 95, 93, 0.05);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 10px;
    font-size: .95rem;
    color: #555;
}

.summary-row.total {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 15px;
    margin-top: 15px;
    margin-bottom: 0;
    font-size: 1.1rem;
    color: var(--color-text);
}

#summary-total {
    color: var(--color-primary);
    font-size: 1.4rem;
    font-weight: 700;
    transition: opacity .2s ease;
}

.booking-summary small {
    display: block;
    margin-top: 12px;
    color: #666;
}

.booking-form .btn {
    width: 100%;
    margin-top: 20px;
    padding: 16px;
}

.booking-secure-note {
    text-align: center;
    font-size: .85rem;
    color: #666;
    margin-top: 15px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .booking-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .booking-form-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .photo-scroll img {
        height: 230px;
    }

    .room-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .booking-form-card {
        padding: 25px 20px;
    }

    .scroll-arrow {
        width: 36px;
        height: 36px;
        font-size: .95rem;
    }

    .scroll-left  { left: 10px; }
    .scroll-right { right: 10px; }
}
#booking-error, #payment-error { color: #a32121; margin-top: 12px; }
.custom-checkbox > span { min-width: 0; }
.room-radio:focus-visible + .room-label { outline: 2px solid var(--color-primary); outline-offset: 3px; }
.payment-page { padding: clamp(32px, 7vw, 72px) 0; }
.payment-page .booking-form-card { max-width: 640px; margin: auto; }
.payment-page .booking-summary { margin-bottom: 20px; }
.payment-page [hidden], [hidden] { display: none !important; }
.payment-page .payment-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.payment-page .payment-note { color: #554a35; background: #fff6db; padding: 10px 14px; border-radius: 6px; }
.payment-page .summary-row span { overflow-wrap: anywhere; min-width: 0; }

.villa-chat { position: fixed; right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 1100; }
.villa-chat [hidden] { display: none !important; }
.villa-chat-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(390px, calc(100vw - 36px));
    height: min(470px, calc(100dvh - 36px));
    border: 1px solid #cad7d4;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 45px #182f2d2b;
    overflow: hidden;
}
.villa-chat .villa-chat-header {
    position: static;
    background: #214e4a;
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    box-shadow: none;
}
.villa-chat-header h2 { font-size: 1.2rem; color: inherit; margin: 0; }
.villa-chat-header p { color: #e4efed; margin: 0; font-size: .83rem; }
.villa-chat-close {
    color: #fff;
    background: transparent;
    border: 0;
    font: inherit;
    min-width: 40px;
    min-height: 40px;
    font-size: 24px;
    cursor: pointer;
}
.villa-chat-log { display: flex; flex-direction: column; gap: 10px; padding: 14px; overflow-y: auto; overscroll-behavior: contain; }
.villa-chat-intro { color: #536462; font-size: .85rem; margin: 0; }
.villa-message {
    align-self: flex-start;
    background: #f0f3f0;
    color: #20302e;
    padding: 8px 11px;
    border-radius: 8px;
    max-width: 90%;
    overflow-wrap: anywhere;
}
.villa-message-guest { align-self: flex-end; background: #deeee9; }
.villa-message strong { font-size: .72rem; color: #3d5955; }
.villa-message p { margin: 2px 0 0; white-space: pre-wrap; font-size: .9rem; }
.villa-chat-form { padding: 12px; border-top: 1px solid #dfe7e5; }
.villa-chat-form>div { display: flex; align-items: flex-end; gap: 8px; }
.villa-chat-form textarea { resize: vertical; flex: 1; min-width: 0; padding: 8px; border-radius: 6px; border: 1px solid #bdceca; font: inherit; }
.villa-chat-form .btn { padding: 8px 12px; min-height: 44px; }
.villa-chat-launch { box-shadow: 0 5px 16px #163a3840; min-height: 44px; }
.villa-chat-error { color: #a32121; margin-bottom: 5px; font-size: .85rem; }
