/* ==========================================================================
   PROJECT: Digital Guestbook (Mobile First) - Port Suites
   DATE: 2026
   
   TABLE OF CONTENTS
   --------------------------------------------------------------------------
   01. Variables & Configuration
   02. Reset & Base Styles
   03. Layout Container & Header
   04. Quick Navigation (Table of Contents Pills)
   05. Wi-Fi Card Component
   06. Accordion System
   07. Local Guide (Places List)
   08. VIP Promo Card & Animations
   09. Sticky Footer (Emergency Bar)
   ========================================================================== */

/* --- 01. VARIABLES & CONFIGURATION --- */
:root {
    --primary: #1D3557;       /* Deep Naval Blue */
    --primary-light: #457B9D; /* Soft Blue */
    --accent: #E63946;        /* Vibrant Red/Coral for Offers */
    --dark: #1A1A1A;          /* Text Color */
    --bg-body: #F4F5F7;       /* Page Background */
    --white: #FFFFFF;
    --radius: 20px;
    --shadow-soft: 0 8px 24px rgba(0,0,0,0.06);
    --shadow-hover: 0 12px 32px rgba(0,0,0,0.1);
}

/* --- 02. RESET & BASE STYLES --- */
* { 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; 
}

html { 
    scroll-behavior: smooth; 
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-body);
    color: var(--dark);
    margin: 0;
    padding-bottom: 90px;
    line-height: 1.5;
}

/* --- 03. LAYOUT CONTAINER & HEADER --- */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg-body);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 30px rgba(0,0,0,0.03);
}

header {
    background: linear-gradient(to bottom, rgba(29, 53, 87, 0.2), rgba(29, 53, 87, 0.9)), 
                url('images/room_2.webp') center/cover;
    height: 240px;
    position: relative;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

.header-content {
    position: absolute;
    bottom: 30px;
    left: 24px;
    color: var(--white);
}

h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }
.subtitle { margin: 6px 0 0; font-size: 15px; opacity: 0.9; font-weight: 400; }

.content { 
    padding: 0 20px 20px; 
    margin-top: -20px; 
    position: relative; 
    z-index: 2; 
}

/* --- 04. QUICK NAVIGATION (TABLE OF CONTENTS PILLS) --- */
.quick-nav {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 5px 0 20px 0;
    scrollbar-width: none; /* Firefox */
}
.quick-nav::-webkit-scrollbar { display: none; } /* Chrome/Safari */

.nav-pill {
    background: var(--white);
    color: var(--dark);
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    border: 1px solid #EAEAEA;
    transition: 0.2s ease;
}

.nav-pill:active { transform: scale(0.95); }

.special-pill {
    background: #FFF0F1;
    color: var(--accent);
    border: 1px solid #FFD6D9;
}

/* --- 05. WI-FI CARD COMPONENT --- */
.wifi-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    text-align: center;
    margin-bottom: 20px;
    scroll-margin-top: 20px; /* Offset for anchor links */
}

.wifi-title { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: #888; font-weight: 700; margin-bottom: 8px; }
.wifi-network { font-size: 22px; font-weight: 700; color: var(--primary); margin-bottom: 20px; display: block; }

.btn-copy {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 15px 24px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.2s ease;
}
.btn-copy:active { transform: scale(0.96); }
.btn-copy.copied { background: #2A9D8F; }

/* --- 06. ACCORDION SYSTEM --- */
.accordion-item {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    scroll-margin-top: 20px;
}

.accordion-header {
    padding: 20px;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
}

.acc-title span { margin-right: 8px; }
.chevron { transition: transform 0.3s ease; font-size: 12px; color: #999; }
.accordion-header.active .chevron { transform: rotate(180deg); }

.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }

.accordion-content { 
    padding: 0 20px 20px; 
    font-size: 15px; 
    color: #555; 
}
.accordion-content ul { padding-left: 20px; margin: 0; }
.accordion-content li { margin-bottom: 10px; }
.action-link { color: var(--primary-light); font-weight: 600; text-decoration: none; display: inline-block; margin-bottom: 15px; }
.info-row { display: flex; justify-content: space-between; padding-top: 15px; border-top: 1px solid #eee; }
.info-row a { color: var(--dark); font-weight: 600; text-decoration: none; }

/* --- 07. LOCAL GUIDE (PLACES LIST) --- */
.places-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 10px;
}

.place-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    border-bottom: 1px solid #F0F2F5;
    padding-bottom: 16px;
}

.place-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.place-icon {
    font-size: 22px;
    background: #F4F5F7;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.place-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.place-info strong {
    color: var(--dark);
    font-size: 15px;
}

.place-info span {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.place-link {
    font-size: 13px;
    color: var(--primary-light);
    font-weight: 600;
    text-decoration: none;
    margin-top: 4px;
    display: inline-block;
    transition: opacity 0.2s;
}

.place-link:active {
    opacity: 0.7;
}

/* --- 08. VIP PROMO CARD & ANIMATIONS --- */
.promo-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    margin-top: 30px;
    color: var(--white);
    box-shadow: 0 12px 24px rgba(29, 53, 87, 0.25);
    scroll-margin-top: 20px;
}

.promo-badge {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 16px;
    backdrop-filter: blur(5px);
}

.promo-card h3 { margin: 0 0 12px; font-size: 22px; }
.promo-card p { margin: 0 0 24px; font-size: 15px; opacity: 0.9; line-height: 1.6; }

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4); }
    50% { transform: scale(1.02); box-shadow: 0 8px 20px rgba(230, 57, 70, 0.6); }
    100% { transform: scale(1); box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4); }
}

.btn-claim {
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
    display: block;
    padding: 16px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
    transition: 0.2s ease;
    animation: pulse 2s infinite ease-in-out;
}
.btn-claim:active { transform: scale(0.96); }

.promo-note { display: block; margin-top: 12px; font-size: 11px; opacity: 0.7; }

/* --- 09. STICKY FOOTER (EMERGENCY BAR) --- */
.emergency-bar {
    position: fixed;
    bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 480px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex; gap: 12px; z-index: 100;
    padding-bottom: max(15px, env(safe-area-inset-bottom));
}

.sos-btn {
    flex: 1; padding: 14px; border-radius: 14px; border: none;
    font-weight: 600; font-size: 14px; cursor: pointer; text-align: center; text-decoration: none;
    transition: 0.1s;
}
.sos-btn:active { transform: scale(0.96); }
.btn-host { background: #F0F2F5; color: var(--primary); }
.btn-sos { background: #FFF0F1; color: var(--accent); }

/* --- 10. LANGUAGE SWITCHER --- */
/* Αρχική κατάσταση: Κρύβουμε τα Αγγλικά */
.lang-en {
    display: none !important;
}

/* Όταν μπει η κλάση 'english-mode' στο body: Κρύβουμε τα Ελληνικά, Δείχνουμε τα Αγγλικά */
body.english-mode .lang-el {
    display: none !important;
}
body.english-mode .lang-en {
    display: inline-block !important; /* ή block ανάλογα το στοιχείο, αλλά το inline-block είναι ασφαλές */
}
body.english-mode div.lang-en,
body.english-mode ul.lang-en,
body.english-mode p.lang-en,
body.english-mode h3.lang-en {
    display: block !important;
}

/* Στιλ για το διακοπτάκι πάνω δεξιά */
.lang-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    padding: 8px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}

.lang-btn:active {
    transform: scale(0.9);
}