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

:root {
    --ocean:          #0a6e8a;
    --ocean-dark:     #075670;
    --turquoise:      #41b5cc;
    --turquoise-light:#8dd4e3;
    --sand:           #e8a84a;
    --sand-light:     #f5d390;
    --navy:           #1a3545;
    --text:           #2d4a5c;
    --text-light:     #6b8a9a;
    --bg:             #f5fbfd;
    --bg-section:     #eaf5f9;
    --white:          #ffffff;
    --shadow:         0 4px 20px rgba(10,110,138,.12);
    --shadow-hover:   0 8px 40px rgba(10,110,138,.22);
    --radius:         12px;
    --transition:     .3s ease;
}

html { scroll-behavior: smooth; }

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

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

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== NAVIGATION ===== */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

nav.scrolled {
    background: rgba(10, 53, 69, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,.2);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    white-space: nowrap;
}
.nav-logo span { color: var(--sand); }

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

.nav-links a {
    color: rgba(255,255,255,.85);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: background var(--transition), color var(--transition);
    display: flex;
    align-items: center;
    gap: 7px;
}
.nav-links a:hover { background: rgba(255,255,255,.1); color: var(--white); }

.lang-switcher { display: flex; gap: 4px; margin-left: 8px; }
.lang-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,.3);
    color: rgba(255,255,255,.65);
    border-radius: 6px;
    padding: 5px 10px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}
.lang-btn.active, .lang-btn:hover {
    background: rgba(255,255,255,.15);
    color: var(--white);
    border-color: rgba(255,255,255,.5);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 6px;
    z-index: 10;
}
.hamburger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.guide-hero {
    position: relative;
    background: linear-gradient(135deg, var(--navy) 0%, var(--ocean-dark) 50%, var(--ocean) 100%);
    padding: 110px 0 70px;
    overflow: hidden;
    text-align: center;
}

.guide-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 120%, rgba(65,181,204,.18) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% -10%, rgba(232,168,74,.12) 0%, transparent 50%);
    pointer-events: none;
}

.guide-hero-content {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin: 0 auto;
}

.guide-hero-icon {
    width: 72px; height: 72px;
    background: rgba(255,255,255,.12);
    border: 2px solid rgba(255,255,255,.25);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--sand);
    margin: 0 auto 22px;
    backdrop-filter: blur(8px);
}

.guide-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    color: var(--white);
    margin-bottom: 14px;
    line-height: 1.2;
}

.guide-hero p {
    color: rgba(255,255,255,.75);
    font-size: 1.05rem;
    max-width: 480px;
    margin: 0 auto;
}

/* ===== GUIDE GRID ===== */
.guide-main {
    padding: 52px 0 64px;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ===== GUIDE CARDS ===== */
.guide-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow var(--transition);
}
.guide-card:hover { box-shadow: var(--shadow-hover); }

.guide-card.full { grid-column: 1 / -1; }

.guide-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(10,110,138,.08);
}

.guide-card-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.guide-card-icon.ocean    { background: rgba(10,110,138,.12); color: var(--ocean); }
.guide-card-icon.turquoise{ background: rgba(65,181,204,.14); color: #2a95a8; }
.guide-card-icon.sand     { background: rgba(232,168,74,.15); color: #c47f20; }

.guide-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--navy);
    font-weight: 600;
}

.guide-card-body {
    padding: 20px 24px 24px;
}

/* ===== INFO ROWS (WiFi, Check-in) ===== */
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(10,110,138,.06);
    gap: 12px;
}
.info-row:last-of-type { border-bottom: none; }
.info-row.mt { margin-top: 12px; border-top: 1px solid rgba(10,110,138,.06); border-bottom: none; padding-top: 14px; }

.info-label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: .03em;
    white-space: nowrap;
}

.info-value {
    font-size: .98rem;
    color: var(--text);
    font-weight: 500;
    text-align: right;
}
.info-value.placeholder { color: var(--text-light); font-style: italic; font-weight: 400; }

.info-value-copy {
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-btn {
    background: rgba(10,110,138,.1);
    border: none;
    border-radius: 6px;
    padding: 6px 9px;
    cursor: pointer;
    color: var(--ocean);
    font-size: .85rem;
    transition: background var(--transition), color var(--transition);
    display: flex;
    align-items: center;
}
.copy-btn:hover { background: var(--ocean); color: var(--white); }
.copy-btn.copied { background: #22a45d; color: var(--white); }

/* ===== CHECK-IN TIME ROWS ===== */
.time-rows { display: flex; flex-direction: column; gap: 0; margin-bottom: 4px; }

.time-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(10,110,138,.06);
}

.time-label { font-size: .92rem; color: var(--text); }

.time-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ocean);
}

/* ===== GUIDE NOTE ===== */
.guide-note {
    font-size: .84rem;
    color: var(--text-light);
    margin-top: 14px;
    background: rgba(10,110,138,.05);
    border-radius: 8px;
    padding: 10px 14px;
    line-height: 1.5;
}

/* ===== HOUSE RULES ===== */
.rules-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rules-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(10,110,138,.06);
    font-size: .94rem;
    color: var(--text);
}
.rules-list li:last-child { border-bottom: none; }
.rules-list li.placeholder { color: var(--text-light); font-style: italic; }

.rule-icon {
    color: var(--ocean);
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

/* ===== APPLIANCES ACCORDION ===== */
.appliance-list { display: flex; flex-direction: column; gap: 4px; }

.appliance-item {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(10,110,138,.1);
}

.appliance-item summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    cursor: pointer;
    font-size: .94rem;
    font-weight: 500;
    color: var(--text);
    list-style: none;
    background: rgba(10,110,138,.03);
    transition: background var(--transition);
    user-select: none;
}
.appliance-item summary::-webkit-details-marker { display: none; }
.appliance-item summary:hover { background: rgba(10,110,138,.07); }
.appliance-item[open] summary { background: rgba(10,110,138,.08); color: var(--ocean-dark); }

.appliance-item summary .fa-solid:first-child {
    color: var(--ocean);
    width: 18px;
    text-align: center;
}

.chevron {
    margin-left: auto;
    font-size: .75rem;
    color: var(--text-light);
    transition: transform var(--transition);
}
.appliance-item[open] .chevron { transform: rotate(180deg); }

.appliance-body {
    padding: 14px 16px;
    font-size: .9rem;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
    border-top: 1px solid rgba(10,110,138,.08);
}
.appliance-body.placeholder { color: var(--text-light); font-style: italic; }

/* ===== NEARBY GRID ===== */
.nearby-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.nearby-cat-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--navy);
    font-size: .92rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 12px;
}
.nearby-cat-title i { color: var(--ocean); }

.nearby-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nearby-list li {
    display: flex;
    flex-direction: column;
    padding: 9px 0;
    border-bottom: 1px solid rgba(10,110,138,.06);
    font-size: .9rem;
}
.nearby-list li:last-child { border-bottom: none; }
.nearby-list li.placeholder { color: var(--text-light); font-style: italic; }
.nearby-list li strong { color: var(--text); font-weight: 600; margin-bottom: 1px; }
.nearby-list li span { color: var(--text-light); font-size: .85rem; }
.nearby-list li:not(.placeholder) strong { color: var(--navy); }

/* ===== CONTACTS GRID ===== */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: rgba(10,110,138,.04);
    border-radius: 10px;
    border: 1px solid rgba(10,110,138,.09);
}

.contact-item.host {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(10,110,138,.06), rgba(65,181,204,.06));
    border-color: rgba(10,110,138,.15);
}

.contact-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ocean), var(--turquoise));
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: 'Playfair Display', serif;
}

.contact-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.contact-icon.red    { background: rgba(220,53,69,.1);  color: #c0392b; }
.contact-icon.blue   { background: rgba(10,110,138,.12); color: var(--ocean); }
.contact-icon.orange { background: rgba(232,168,74,.15); color: #c47f20; }
.contact-icon.green  { background: rgba(34,164,93,.12);  color: #1a7c42; }
.contact-icon.ocean  { background: rgba(10,110,138,.12); color: var(--ocean); }

.contact-name {
    font-weight: 600;
    color: var(--navy);
    font-size: .95rem;
}

.contact-role {
    font-size: .83rem;
    color: var(--text-light);
    margin-bottom: 2px;
}
.contact-role.placeholder { font-style: italic; }

.contact-phone {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ocean);
    text-decoration: none;
    margin-top: 2px;
    transition: color var(--transition);
}
.contact-phone:hover { color: var(--ocean-dark); }
.contact-phone.placeholder { color: var(--text-light); font-style: italic; font-size: .9rem; font-weight: 400; }

/* ===== QR CODE SECTION ===== */
.qr-section {
    background: var(--navy);
    padding: 52px 0;
}

.qr-inner {
    display: flex;
    align-items: flex-start;
    gap: 48px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    padding: 36px 40px;
}

.qr-info { flex: 1; }

.qr-badge {
    display: inline-block;
    background: rgba(232,168,74,.2);
    color: var(--sand);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    border: 1px solid rgba(232,168,74,.3);
}

.qr-info h3 {
    font-family: 'Playfair Display', serif;
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.qr-info p {
    color: rgba(255,255,255,.6);
    font-size: .9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.qr-input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.qr-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.08);
    color: var(--white);
    font-size: .9rem;
    font-family: inherit;
    outline: none;
    transition: border-color var(--transition);
}
.qr-input::placeholder { color: rgba(255,255,255,.35); }
.qr-input:focus { border-color: rgba(255,255,255,.5); }

.btn-generate {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--ocean);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background var(--transition);
    white-space: nowrap;
}
.btn-generate:hover { background: var(--ocean-dark); }

.btn-print {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: transparent;
    color: rgba(255,255,255,.75);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition);
}
.btn-print:hover { background: rgba(255,255,255,.1); color: var(--white); border-color: rgba(255,255,255,.4); }

.qr-code-wrap {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 200px; min-height: 200px;
    background: var(--white);
    border-radius: 12px;
    padding: 16px;
}

#qr-code canvas,
#qr-code img { border-radius: 4px; }

.qr-placeholder-text {
    color: rgba(10,110,138,.4);
    font-size: .82rem;
    text-align: center;
}

/* ===== FOOTER ===== */
.guide-footer {
    background: #0e2233;
    padding: 36px 0;
    text-align: center;
}

.guide-footer-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--white);
    font-weight: 700;
}
.footer-logo span { color: var(--sand); }

.footer-tagline { color: rgba(255,255,255,.45); font-size: .85rem; }

.footer-back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    color: var(--turquoise-light);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 500;
    transition: color var(--transition);
}
.footer-back-link:hover { color: var(--white); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .guide-grid { grid-template-columns: 1fr; }
    .guide-card.full { grid-column: 1; }
    .contacts-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-item.host { grid-column: 1 / -1; }
    .qr-inner { flex-direction: column; align-items: stretch; gap: 28px; }
    .qr-code-wrap { align-self: center; }
}

@media (max-width: 640px) {
    .hamburger { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: rgba(15,55,75,.98);
        flex-direction: column;
        padding: 20px 24px;
        gap: 14px;
        box-shadow: 0 8px 24px rgba(0,0,0,.2);
    }
    .nav-links.open { display: flex; }
    .lang-switcher { margin-left: 0; }

    .nearby-grid { grid-template-columns: 1fr; }
    .contacts-grid { grid-template-columns: 1fr; }
    .contact-item.host { grid-column: 1; }

    .guide-hero { padding: 90px 0 50px; }
    .guide-main { padding: 32px 0 48px; }
    .guide-grid { gap: 14px; }

    .qr-input-row { flex-direction: column; }
    .qr-inner { padding: 24px 20px; }
}

/* ===== LANGUAGE FAB ===== */
.lang-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.lang-fab-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--navy);
    color: var(--white);
    border: 2px solid rgba(255,255,255,.18);
    border-radius: 50px;
    padding: 13px 20px;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 28px rgba(0,0,0,.38);
    transition: all var(--transition);
    font-family: inherit;
    letter-spacing: .02em;
}
.lang-fab-trigger:hover,
.lang-fab.open .lang-fab-trigger {
    background: var(--ocean-dark);
    border-color: rgba(255,255,255,.35);
    transform: translateY(-2px);
    box-shadow: 0 10px 36px rgba(0,0,0,.45);
}

.lang-fab-flags {
    display: flex;
    align-items: center;
    gap: 4px;
}

.fab-flag { font-size: 1.3rem; line-height: 1; }

.fab-sep {
    color: rgba(255,255,255,.35);
    font-size: .8rem;
    font-weight: 300;
    line-height: 1;
}

.lang-fab-chevron {
    font-size: .72rem;
    color: rgba(255,255,255,.5);
    transition: transform var(--transition);
    margin-left: 2px;
}
.lang-fab.open .lang-fab-chevron { transform: rotate(180deg); }

.lang-fab-panel {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 12px 52px rgba(0,0,0,.24);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 200px;
    transform: translateY(14px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: transform .22s ease, opacity .18s ease;
    transform-origin: bottom right;
}
.lang-fab.open .lang-fab-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: .93rem;
    color: var(--text);
    transition: background var(--transition);
    text-align: left;
    width: 100%;
    border-bottom: 1px solid rgba(10,110,138,.07);
    position: relative;
}
.lang-option:last-child { border-bottom: none; }
.lang-option:hover { background: var(--bg-section); }
.lang-option.active {
    background: rgba(10,110,138,.08);
    color: var(--ocean-dark);
    font-weight: 600;
}
.lang-option.active::after {
    content: '✓';
    margin-left: auto;
    color: var(--ocean);
    font-size: .85rem;
}

.lang-flag { font-size: 1.35rem; line-height: 1; flex-shrink: 0; }
.lang-name { flex: 1; }

@media (max-width: 480px) {
    .lang-fab { bottom: 16px; right: 16px; }
    .lang-fab-label { display: none; }
    .lang-fab-trigger { padding: 12px 16px; gap: 8px; }
    .lang-fab-panel { min-width: 180px; }
}
