/* ============================================
   NOMAD LIFE - Booking System CSS
   Font: Geologica | Colors: #1a1a2e, #e63946
   ============================================ */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { min-height: 100%; }
body { margin: 0; display: flex; flex-direction: column; min-height: 100vh; }

#nomad-life-app {
    font-family: 'Geologica', sans-serif;
    color: #1a1a2e;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    min-height: 100vh;
    width: 100%;
}

#nomad-life-app img { max-width: 100%; height: auto; display: block; }
#nomad-life-app a { text-decoration: none; color: inherit; }
#nomad-life-app button { cursor: pointer; font-family: inherit; }

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

/* === NAVIGATION === */
.nl-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s ease;
}

.nl-nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px; height: 64px;
}

.nl-logo {
    display: flex; align-items: center; gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Geologica', sans-serif;
}
.nl-logo-text {
    font-size: 22px; font-weight: 700; color: #fff;
    letter-spacing: -0.5px;
}

.nl-nav-links { display: flex; gap: 32px; }
.nl-nav-link {
    background: none;
    border: none;
    color: rgba(255,255,255,0.95); font-size: 14px; font-weight: 500;
    transition: color 0.2s; position: relative; padding: 4px 0;
    cursor: pointer;
    font-family: 'Geologica', sans-serif;
}
.nl-nav-link:hover, .nl-nav-link.active { color: #fff; }
.nl-nav-link.active::after {
    content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
    height: 2px; background: #e63946; border-radius: 1px;
}

.nl-nav-actions { display: flex; align-items: center; gap: 12px; }

.nl-lang-toggle {
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    color: #fff; padding: 6px 12px; border-radius: 6px;
    font-size: 12px; font-weight: 600; letter-spacing: 1px;
    transition: all 0.2s;
}
.nl-lang-toggle:hover { background: rgba(255,255,255,0.2); }

.nl-mobile-toggle {
    display: none; background: none; border: none;
    flex-direction: column; gap: 5px; padding: 8px;
}
.nl-mobile-toggle span {
    display: block; width: 22px; height: 2px;
    background: #fff; border-radius: 1px; transition: all 0.3s;
}

/* === MOBILE MENU === */
.nl-mobile-menu {
    display: none; position: fixed; top: 64px; left: 0; right: 0;
    background: #1a1a2e; padding: 20px; z-index: 999;
    flex-direction: column; gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nl-mobile-menu.open { display: flex; }
.nl-mobile-menu button {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8); font-size: 16px; padding: 8px 0;
    text-align: left;
    cursor: pointer;
    font-family: 'Geologica', sans-serif;
}

/* === BUTTONS === */
.nl-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border-radius: 8px; font-size: 14px; font-weight: 600;
    border: none; transition: all 0.25s ease; cursor: pointer;
}
.nl-btn-primary { background: #e63946; color: #fff; }
.nl-btn-primary:hover { background: #d62839; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(230,57,70,0.3); }
.nl-btn-outline { background: transparent; color: #1a1a2e; border: 2px solid #1a1a2e; }
.nl-btn-outline:hover { background: #1a1a2e; color: #fff; }
.nl-btn-sm { padding: 8px 16px; font-size: 13px; }
.nl-btn-block { width: 100%; }

/* === HERO SECTION === */
.nl-hero {
    position: relative; min-height: 600px;
    display: flex; align-items: center; justify-content: center;
    margin-top: 64px; overflow: hidden;
}
.nl-hero-bg { position: absolute; inset: 0; }
.nl-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.nl-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(26,26,46,0.85) 0%, rgba(26,26,46,0.5) 100%);
}
.nl-hero-content {
    position: relative; z-index: 2; text-align: center;
    padding: 60px 20px; max-width: 900px;
}
.nl-hero-title { font-size: 48px; font-weight: 800; color: #fff; margin-bottom: 12px; letter-spacing: -1px; }
.nl-hero-subtitle { font-size: 18px; color: rgba(255,255,255,0.8); margin-bottom: 8px; }
.nl-hero-desc { font-size: 15px; color: rgba(255,255,255,0.6); margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* === SEARCH BAR === */
.nl-search-bar {
    display: flex; gap: 0; background: #fff; border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15); overflow: hidden;
    align-items: stretch;
}
.nl-search-field {
    flex: 1; padding: 14px 16px; border-right: 1px solid #eee;
    display: flex; flex-direction: column; gap: 4px;
}
.nl-search-field:last-of-type { border-right: none; }
.nl-search-field label { font-size: 11px; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: 0.5px; }
.nl-search-field input, .nl-search-field select {
    border: none; outline: none; font-size: 14px; font-family: 'Geologica', sans-serif;
    color: #1a1a2e; background: transparent; width: 100%;
}
.nl-search-field input::placeholder { color: #bbb; }

.nl-search-btn {
    display: flex; align-items: center; gap: 8px;
    background: #e63946; color: #fff; border: none;
    padding: 14px 24px; font-size: 14px; font-weight: 600;
    transition: background 0.2s; white-space: nowrap;
}
.nl-search-btn:hover { background: #d62839; }

.nl-search-field-guests select { padding: 4px 0; }

/* Inline search bar (search page) */
.nl-search-bar--inline {
    margin-bottom: 20px; flex-wrap: wrap;
}
.nl-filters-toggle-btn {
    display: flex; align-items: center; gap: 6px;
    background: #f0f0f5; border: none; padding: 14px 18px;
    font-size: 13px; font-weight: 600; color: #1a1a2e;
    border-radius: 0 12px 12px 0; transition: background 0.2s;
}
.nl-filters-toggle-btn:hover { background: #e4e4ec; }

/* === LEGEND === */
.nl-legend {
    background: #f8f9fa; padding: 12px 0; border-bottom: 1px solid #eee;
}
.nl-legend .nl-container { display: flex; gap: 24px; justify-content: center; }
.nl-legend-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #666; }
.nl-legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.nl-legend-dot.nl-available { background: #2ecc71; }
.nl-legend-dot.nl-unavailable { background: #e74c3c; }

/* === AD BANNER (homepage CTA bar) === */
.nl-ad-banner {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #2a2a4a 100%);
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nl-ad-banner::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(26,26,46,0.85) 0%, rgba(26,26,46,0.7) 100%);
    pointer-events: none;
}
.nl-ad-banner-inner {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; flex-wrap: wrap;
}
.nl-ad-banner-text {
    margin: 0; font-size: 15px; font-weight: 500;
    color: rgba(255,255,255,0.92); flex: 1; min-width: 240px;
}
.nl-ad-banner-cta {
    display: inline-flex; align-items: center; gap: 8px;
    background: #e63946; color: #fff; border: none;
    padding: 10px 18px; border-radius: 8px;
    font-size: 13px; font-weight: 700;
    letter-spacing: 0.3px; cursor: pointer;
    font-family: 'Geologica', sans-serif;
    transition: all 0.2s ease;
}
.nl-ad-banner-cta:hover { background: #d62839; transform: translateX(2px); }
.nl-ad-banner-cta svg { transition: transform 0.2s ease; }
.nl-ad-banner-cta:hover svg { transform: translateX(3px); }

/* === AD SPOT PAGE === */
.nl-adspot-page { padding-top: 64px; }
.nl-adspot-hero {
    position: relative; height: 360px; overflow: hidden;
}
.nl-adspot-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nl-adspot-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(26,26,46,0.2) 0%, rgba(26,26,46,0.75) 100%);
}
.nl-adspot-hero-title {
    position: absolute; inset: 0;
    display: flex; align-items: flex-end; justify-content: center;
    padding: 0 20px 40px;
}
.nl-adspot-hero-title h1 {
    color: #fff; font-size: 36px; font-weight: 800;
    text-align: center; letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.nl-adspot-header { padding: 40px 0 0; }
.nl-adspot-header h1 { font-size: 32px; font-weight: 800; }
.nl-adspot-body { padding: 32px 20px 60px; }
.nl-adspot-content {
    max-width: 760px; margin: 0 auto 40px;
    font-size: 16px; line-height: 1.75; color: #444;
}
.nl-adspot-content p { margin-bottom: 14px; }
.nl-adspot-empty { padding: 120px 20px; text-align: center; }

/* === SECTION HEADERS === */
.nl-section-header {
    display: flex; align-items: center; gap: 16px; margin-bottom: 12px;
}
.nl-section-header-line { width: 40px; height: 2px; background: #e63946; }
.nl-section-header h2 { font-size: 28px; font-weight: 700; color: #1a1a2e; }
.nl-section-desc { color: #666; font-size: 15px; margin-bottom: 32px; max-width: 600px; }

/* === ACCOMMODATION CARDS === */
.nl-accommodations-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px; margin-bottom: 32px;
}
.nl-acc-card {
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease; cursor: pointer;
}
.nl-acc-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }

.nl-acc-card-img { height: 200px; overflow: hidden; }
.nl-acc-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.nl-acc-card:hover .nl-acc-card-img img { transform: scale(1.05); }

.nl-acc-card-body { padding: 20px; }
.nl-acc-card-title { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.nl-acc-card-location { font-size: 13px; color: #888; margin-bottom: 8px; }
.nl-acc-card-price { font-size: 20px; font-weight: 700; color: #e63946; margin-bottom: 12px; }
.nl-acc-card-price span { font-size: 13px; font-weight: 400; color: #888; }

.nl-acc-card-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.nl-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 500;
}
.nl-badge-available { background: #e8f8f0; color: #2ecc71; }
.nl-badge-unavailable { background: #fde8e8; color: #e74c3c; }
.nl-badge-type { background: #f0f0f5; color: #666; }
.nl-badge-rooms { background: #e8f0fe; color: #3367d6; }

.nl-featured { padding: 60px 0; }
.nl-featured-cta { text-align: center; margin-top: 24px; }

/* === PARTNERS SECTION === */
.nl-partners-section { padding: 60px 0; background: #f8f9fa; }
.nl-partners-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.nl-partners-text p { color: #666; font-size: 15px; margin-bottom: 24px; }
.nl-partners-img {
    border-radius: 16px;
    overflow: hidden;
    height: 400px;
    -webkit-mask-image: -webkit-radial-gradient(white, black); /* force webkit border-radius clipping */
}
.nl-partners-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px; /* explicit on the img too so all 4 corners are rounded */
}

/* === SEARCH PAGE === */
.nl-search-page { padding: 84px 0 40px; }

.nl-filters-inline {
    background: #f8f9fa; border-radius: 12px; padding: 20px;
    margin-bottom: 24px; display: none;
}
.nl-filters-inline.open { display: block; }

.nl-filter-group { margin-bottom: 16px; }
.nl-filter-group:last-child { margin-bottom: 0; }
.nl-filter-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: #555; }
.nl-filter-group select {
    padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px;
    font-family: 'Geologica', sans-serif; font-size: 13px; background: #fff;
}

.nl-price-range { display: flex; align-items: center; gap: 8px; }
.nl-price-range input {
    width: 80px; padding: 8px 10px; border: 1px solid #ddd;
    border-radius: 6px; font-family: 'Geologica', sans-serif; font-size: 13px;
}

.nl-amenities-checkboxes { display: flex; flex-wrap: wrap; gap: 8px; }
.nl-amenity-check {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 5px 10px; background: #fff; border: 1px solid #ddd;
    border-radius: 20px; font-size: 12px; cursor: pointer;
    transition: all 0.2s;
}
.nl-amenity-check:has(input:checked) { background: #1a1a2e; color: #fff; border-color: #1a1a2e; }
.nl-amenity-check input { display: none; }

/* === RESULTS GRID === */
.nl-results-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.nl-no-results { text-align: center; padding: 60px 20px; color: #888; }
.nl-no-results p:first-child { font-size: 18px; font-weight: 600; margin-bottom: 8px; }

/* === ACCOMMODATION DETAIL === */
.nl-acc-detail { padding-top: 64px; }

.nl-acc-gallery { position: relative; max-width: 1200px; margin: 0 auto; padding: 16px 20px 0; }
.nl-acc-gallery-main {
    height: 480px;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #16162a 0%, #1a1a2e 100%);
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.nl-acc-gallery-main img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.nl-acc-gallery-thumbs {
    display: flex; gap: 8px; padding: 12px 0 4px; overflow-x: auto;
}
.nl-acc-gallery-thumbs img {
    width: 110px; height: 78px; object-fit: cover;
    border-radius: 8px; cursor: pointer; opacity: 0.65;
    transition: opacity 0.2s, transform 0.2s;
    flex-shrink: 0;
    border: 2px solid transparent;
}
.nl-acc-gallery-thumbs img:hover { opacity: 0.9; }
.nl-acc-gallery-thumbs img.active { opacity: 1; border-color: #e63946; }

.nl-acc-detail-content {
    display: grid; grid-template-columns: 1fr 380px; gap: 40px;
    padding: 40px 20px; max-width: 1200px; margin: 0 auto;
}

.nl-acc-info h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.nl-acc-info .nl-acc-address { color: #888; font-size: 14px; margin-bottom: 20px; }
.nl-acc-info .nl-acc-address svg { vertical-align: middle; margin-right: 4px; }

.nl-acc-meta { display: flex; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.nl-acc-meta-item {
    display: flex; align-items: center; gap: 6px;
    font-size: 14px; color: #555;
    padding: 8px 14px; background: #f8f9fa; border-radius: 8px;
}
.nl-acc-meta-item strong { font-weight: 700; color: #1a1a2e; }
.nl-meta-icon { font-size: 16px; line-height: 1; }

.nl-acc-rules, .nl-acc-directions {
    margin-bottom: 24px; padding: 16px 18px;
    background: #f8f9fa; border-radius: 10px;
    border-left: 3px solid #e63946;
}
.nl-acc-rules h3, .nl-acc-directions h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: #1a1a2e; }
.nl-acc-rules-body { font-size: 14px; color: #555; line-height: 1.7; }

.nl-acc-amenities { margin-bottom: 24px; }
.nl-acc-amenities h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.nl-amenity-list { display: flex; flex-wrap: wrap; gap: 8px; }
.nl-amenity-tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; background: #f0f7f0; border-radius: 20px;
    font-size: 13px; color: #2d6a2e;
}
.nl-amenity-tag::before { content: '\2713'; font-weight: 700; color: #2ecc71; }

.nl-acc-description { margin-bottom: 24px; }
.nl-acc-description h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.nl-acc-description p { color: #555; font-size: 14px; line-height: 1.7; }

/* Hotel rooms */
.nl-rooms-list { margin-bottom: 24px; }
.nl-rooms-list h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.nl-room-card {
    border: 1px solid #eee; border-radius: 10px; padding: 16px;
    margin-bottom: 12px; transition: all 0.2s;
}
.nl-room-card:hover { border-color: #1a1a2e; }
.nl-room-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.nl-room-card-name { font-weight: 700; font-size: 15px; }
.nl-room-card-price { font-weight: 700; color: #e63946; }
.nl-room-card-amenities { display: flex; flex-wrap: wrap; gap: 4px; }
.nl-room-card-amenities .nl-amenity-tag { font-size: 11px; padding: 3px 8px; }

/* === BOOKING SIDEBAR === */
.nl-booking-sidebar {
    position: sticky; top: 84px;
    background: #fff; border: 1px solid #eee; border-radius: 12px;
    padding: 24px; box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.nl-booking-price { font-size: 28px; font-weight: 800; color: #1a1a2e; margin-bottom: 4px; }
.nl-booking-price span { font-size: 14px; font-weight: 400; color: #888; }

.nl-booking-dates { margin: 16px 0; }
.nl-booking-dates .nl-date-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.nl-booking-dates label { display: block; font-size: 11px; font-weight: 600; color: #888; margin-bottom: 4px; text-transform: uppercase; }
.nl-booking-dates input, .nl-booking-dates select {
    width: 100%; padding: 10px 12px; border: 1px solid #ddd;
    border-radius: 8px; font-family: 'Geologica', sans-serif; font-size: 13px;
}

.nl-booking-form .nl-form-group { margin-bottom: 12px; }
.nl-booking-form label { display: block; font-size: 12px; font-weight: 600; color: #555; margin-bottom: 4px; }
.nl-booking-form input, .nl-booking-form select, .nl-booking-form textarea {
    width: 100%; padding: 10px 12px; border: 1px solid #ddd;
    border-radius: 8px; font-family: 'Geologica', sans-serif; font-size: 13px;
}
.nl-booking-form textarea { resize: vertical; min-height: 60px; }

.nl-booking-summary {
    background: #f8f9fa; border-radius: 8px; padding: 16px;
    margin: 16px 0;
}
.nl-booking-summary-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; }
.nl-booking-summary-row.total { font-size: 16px; font-weight: 700; border-top: 1px solid #ddd; padding-top: 8px; margin-top: 8px; }
.nl-booking-summary-row.total .nl-sum { color: #e63946; }
.nl-booking-taxes-note { font-size: 11px; color: #888; margin-top: 8px; }

/* === MODAL === */
.nl-modal {
    display: none; position: fixed; inset: 0; z-index: 2000;
    align-items: center; justify-content: center;
}
.nl-modal.open { display: flex; }
.nl-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.nl-modal-content {
    position: relative; background: #fff; border-radius: 16px;
    padding: 32px; max-width: 520px; width: 90%;
    max-height: 90vh; overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: modalIn 0.3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.nl-modal-close {
    position: absolute; top: 12px; right: 16px;
    background: none; border: none; font-size: 28px; color: #888;
    cursor: pointer; line-height: 1;
}
.nl-modal-close:hover { color: #1a1a2e; }

.nl-modal h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.nl-modal .nl-modal-success { text-align: center; }
.nl-modal .nl-modal-success .nl-check-icon {
    width: 60px; height: 60px; border-radius: 50%; background: #2ecc71;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px; color: #fff; font-size: 28px;
}
.nl-modal .nl-payment-details {
    background: #f0f7ff; border-radius: 8px; padding: 16px;
    margin: 16px 0; text-align: left; font-size: 13px; line-height: 1.8;
}

/* === FILTERS PANEL (mobile) === */
.nl-filters-panel {
    display: none; position: fixed; bottom: 0; left: 0; right: 0;
    background: #fff; border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15); z-index: 1500;
    max-height: 80vh; overflow-y: auto;
}
.nl-filters-panel.open { display: block; }
.nl-filters-panel-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; border-bottom: 1px solid #eee;
}
.nl-filters-panel-header h3 { font-size: 16px; font-weight: 700; }
.nl-filters-close { background: none; border: none; font-size: 24px; color: #888; }
.nl-filters-panel-body { padding: 20px; }
.nl-filters-panel-footer { padding: 16px 20px; border-top: 1px solid #eee; display: flex; gap: 8px; }

/* === SPINNER === */
.nl-spinner {
    width: 32px; height: 32px; border: 3px solid #eee;
    border-top-color: #e63946; border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.nl-spinner-wrap { display: flex; justify-content: center; padding: 40px; }
.nl-results-loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 40px; color: #888; }

/* === PARTNERS PAGE === */
.nl-partners-page { padding-top: 64px; }
.nl-partners-hero { position: relative; height: 300px; overflow: hidden; }
.nl-partners-hero img { width: 100%; height: 100%; object-fit: cover; }
.nl-partners-hero-overlay { position: absolute; inset: 0; background: rgba(26,26,46,0.7); }
.nl-partners-hero-content {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; color: #fff; text-align: center;
}
.nl-partners-hero-content h1 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.nl-partners-hero-content p { font-size: 16px; max-width: 500px; opacity: 0.8; }

.nl-partners-content { padding: 40px 0; }
.nl-partners-benefits { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; margin-bottom: 40px; }
.nl-partner-benefit {
    padding: 24px; background: #f8f9fa; border-radius: 12px;
}
.nl-partner-benefit h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.nl-partner-benefit p { font-size: 14px; color: #666; }

.nl-partners-cta { text-align: center; padding: 40px; background: #1a1a2e; border-radius: 12px; color: #fff; }
.nl-partners-cta h2 { font-size: 24px; margin-bottom: 12px; }
.nl-partners-cta p { color: rgba(255,255,255,0.7); margin-bottom: 20px; }
.nl-partners-cta a { color: #e63946; }

/* === CONTACT PAGE === */
.nl-contact-page { padding: 104px 0 40px; }
.nl-contact-page h1 { font-size: 32px; font-weight: 800; margin-bottom: 32px; }
.nl-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.nl-contact-info h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.nl-contact-info p { color: #666; margin-bottom: 20px; }
.nl-contact-item { margin-bottom: 12px; font-size: 14px; }
.nl-contact-item a { color: #e63946; }

.nl-contact-form .nl-form-group { margin-bottom: 16px; }
.nl-contact-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.nl-contact-form input, .nl-contact-form textarea {
    width: 100%; padding: 10px 14px; border: 1px solid #ddd;
    border-radius: 8px; font-family: 'Geologica', sans-serif; font-size: 14px;
}

/* Footer always at bottom */
.nl-footer {
    background: #f4f5f7;
    color: #555;
    padding: 16px 0;
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.3px;
    border-top: 1px solid #e7e9ee;
    font-weight: 400;
    flex-shrink: 0;
}
.nl-footer .nl-container {
    color: #555;
    opacity: 0.85;
}
.nl-footer a { color: #1a1a2e; }

#nomad-life-app .nl-main {
    flex: 1;
    padding-top: 0;
}

/* === AVAILABILITY CALENDAR === */
.nl-acc-calendar { margin-bottom: 24px; }
.nl-acc-calendar h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }

/* Flatpickr availability colors */
.flatpickr-calendar .flatpickr-day.nl-cal-avail-free {
    background: #e8f8f0 !important;
    color: #2ecc71 !important;
    border-color: #2ecc71 !important;
}
.flatpickr-calendar .flatpickr-day.nl-cal-avail-blocked {
    background: #fde8e8 !important;
    color: #e74c3c !important;
    border-color: #e74c3c !important;
}
.flatpickr-calendar .flatpickr-day.nl-cal-avail-free:hover {
    background: #d4f1e0 !important;
}
.flatpickr-calendar .flatpickr-day.nl-cal-avail-blocked:hover {
    background: #fbd4d4 !important;
}
.nl-cal-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px; padding: 0 4px;
}
.nl-cal-month { font-size: 15px; font-weight: 600; }
.nl-cal-nav {
    background: #f0f0f5; border: none; width: 32px; height: 32px;
    border-radius: 6px; font-size: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.nl-cal-nav:hover { background: #e4e4ec; }

.nl-cal-grid {
    user-select: none;
    background: #e6e6ee;
    border: 1px solid #e0e0e8;
    border-radius: 8px;
    padding: 1px;
}
.nl-cal-days-header {
    display: grid; grid-template-columns: repeat(7, 1fr);
    gap: 1px; margin-bottom: 1px;
    background: #e6e6ee;
}
.nl-cal-day-name {
    text-align: center; font-size: 11px; font-weight: 600;
    color: #666; padding: 6px 4px;
    background: #f5f5fa;
}
.nl-cal-days {
    display: grid; grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e6e6ee;
}
.nl-cal-day {
    aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 500;
    background: #fff;
    transition: transform 0.15s, box-shadow 0.15s;
    position: relative;
}
.nl-cal-day:hover:not(.nl-cal-empty):not(.nl-cal-past) {
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    z-index: 2;
}
.nl-cal-empty { background: #fafafc; }
.nl-cal-past { color: #ccc; background: #f8f8f8; }
.nl-cal-free { background: #e8f8f0; color: #2ecc71; cursor: pointer; }
.nl-cal-blocked { background: #fde8e8; color: #e74c3c; }
.nl-cal-day:not(.nl-cal-empty):not(.nl-cal-past):not(.nl-cal-blocked) { cursor: pointer; }

.nl-calendar-legend {
    display: flex; gap: 16px; margin-top: 12px;
}
.nl-cal-legend {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: #666;
}
.nl-cal-dot {
    width: 12px; height: 12px; border-radius: 3px;
}
.nl-cal-dot.nl-cal-free { background: #e8f8f0; border: 1px solid #2ecc71; }
.nl-cal-dot.nl-cal-blocked { background: #fde8e8; border: 1px solid #e74c3c; }
.nl-cal-dot.nl-cal-selected { background: #e63946; border: 1px solid #c0303c; }

/* Selected dates in calendar */
.nl-cal-day.nl-cal-selected {
    background: #e63946 !important;
    color: #fff !important;
    font-weight: 700;
}
.nl-cal-day.nl-cal-in-range {
    background: #fce4e6 !important;
    color: #c0303c !important;
}
.nl-cal-day.nl-cal-free:hover,
.nl-cal-day.nl-cal-selected:hover {
    transform: scale(1.1);
    cursor: pointer;
}

/* Calendar selection info */
.nl-cal-selection-info {
    margin-top: 12px;
    padding: 10px 14px;
    background: #f0f7ff;
    border-radius: 8px;
    border-left: 3px solid #e63946;
    font-size: 13px;
    color: #1a1a2e;
}

/* Google Maps link */
.nl-maps-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #e63946;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-left: 8px;
    transition: color 0.2s;
}
.nl-maps-link:hover {
    color: #c0303c;
    text-decoration: underline;
}
.nl-maps-link svg {
    vertical-align: middle;
}

/* === CASH WARNING === */
.nl-cash-warning {
    background: #fff3cd; border: 1px solid #ffc107; border-radius: 6px;
    padding: 8px 12px; margin-bottom: 12px; text-align: center;
}

/* === MODAL PRICING BREAKDOWN === */
.nl-modal-pricing {
    background: #f8f9fa; border-radius: 8px; padding: 16px;
    margin: 16px 0; text-align: left;
}
.nl-modal-price-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 6px 0; font-size: 14px; color: #555;
}
.nl-modal-price-row.nl-modal-price-total {
    font-size: 18px; font-weight: 700; color: #1a1a2e;
    border-top: 1px solid #ddd; padding-top: 10px; margin-top: 6px;
}
.nl-modal-price-total span:last-child { color: #e63946; }
.nl-modal-price-note {
    font-size: 11px; color: #888; margin-top: 8px; text-align: center;
}

/* === iCAL GUIDE === */
.nl-ical-guide {
    margin: 40px 0; padding: 32px; background: #f8f9fa;
    border-radius: 12px; border: 1px solid #e8e8ec;
}
.nl-ical-guide h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.nl-ical-guide > p { color: #666; margin-bottom: 24px; }

.nl-ical-steps { display: flex; flex-direction: column; gap: 20px; }
.nl-ical-step {
    display: flex; gap: 16px; align-items: flex-start;
}
.nl-step-number {
    flex-shrink: 0; width: 36px; height: 36px;
    background: #1a1a2e; color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 16px;
}
.nl-step-content h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.nl-step-content p { font-size: 14px; color: #555; margin: 0; }
.nl-step-content a { color: #e63946; text-decoration: underline; }

.nl-ical-note {
    margin-top: 24px; padding: 16px; background: #fff3cd;
    border-radius: 8px; border-left: 4px solid #ffc107;
    font-size: 13px; color: #664d03;
}

/* === SPA TRANSITIONS === */
.nl-main { transition: opacity 0.25s ease; }
.nl-main.nl-fading { opacity: 0; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nl-nav-links { display: none; }
    .nl-mobile-toggle { display: flex; }

    .nl-hero { min-height: 500px; }
    .nl-hero-title { font-size: 32px; }
    .nl-hero-subtitle { font-size: 15px; }

    .nl-search-bar { flex-direction: column; border-radius: 12px; }
    .nl-search-field { border-right: none; border-bottom: 1px solid #eee; }
    .nl-search-btn { border-radius: 0 0 12px 12px; justify-content: center; }
    .nl-filters-toggle-btn { border-radius: 0; justify-content: center; }

    .nl-partners-inner { grid-template-columns: 1fr; }
    .nl-partners-img { height: 250px; }

    .nl-acc-detail-content { grid-template-columns: 1fr; }
    .nl-booking-sidebar { position: static; }

    .nl-acc-gallery-main { height: 320px; }
    .nl-acc-gallery { padding: 12px 12px 0; }
    .nl-acc-gallery-thumbs img { width: 84px; height: 60px; }

    .nl-contact-grid { grid-template-columns: 1fr; }

    .nl-accommodations-grid { grid-template-columns: 1fr; }
    .nl-results-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .nl-hero-title { font-size: 26px; }
    .nl-section-header h2 { font-size: 22px; }
    .nl-acc-info h1 { font-size: 24px; }
}

/* === MAP BUTTON next to accommodation address === */
.nl-acc-address-row {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 12px; margin-bottom: 20px;
}
.nl-acc-address-row .nl-acc-address {
    margin: 0; color: #555; font-size: 14px;
}
.nl-btn-map {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px;
    background: #fff; color: #1a1a2e;
    border: 1.5px solid #1a1a2e; border-radius: 8px;
    font-size: 13px; font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1;
    cursor: pointer;
}
.nl-btn-map:hover {
    background: #1a1a2e; color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(26,26,46,0.18);
}
.nl-btn-map svg { transition: transform 0.2s ease; flex-shrink: 0; }
.nl-btn-map:hover svg { transform: translateX(2px); }

/* === Calendar selected cells must beat the .nl-cal-blocked rule === */
.nl-cal-day.nl-cal-selected,
.nl-cal-day.nl-cal-selected.nl-cal-blocked {
    background: #e63946 !important;
    color: #fff !important;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
}
.nl-cal-day.nl-cal-in-range,
.nl-cal-day.nl-cal-in-range.nl-cal-blocked {
    background: #d0d3da !important;   /* gray for nights between selected dates */
    color: #1a1a2e !important;
    border-radius: 4px;
}
.nl-cal-day.nl-cal-selected:hover { transform: scale(1.08); }

/* Footer must always sit at the bottom of the viewport */
.nl-footer {
    margin-top: auto;
}
