/* ===========================
   Zyonera Guest App — global styles
   Mobile-first, branding via CSS vars
   =========================== */

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-body, Inter, system-ui, sans-serif);
    background: #f5f5f5;
    color: #222;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* ---- Top bar ---- */
.guest-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-primary);
    color: #fff;
    padding: .75rem 1rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.guest-header .hotel-name {
    font-size: 1.05rem;
    font-weight: 600;
    flex: 1;
}
.guest-header a.back-btn {
    color: rgba(255,255,255,.85);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .25rem;
    font-size: .95rem;
}
.guest-header .icon-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: .25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
}
.material-icons { font-family: 'Material Icons'; font-style: normal; }

/* ---- Bottom nav ---- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    display: flex;
    border-top: 1px solid #e5e5e5;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -2px 10px rgba(0,0,0,.07);
}
.bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
    text-decoration: none;
    padding: .6rem .25rem;
    color: #999;
    font-size: .7rem;
    font-weight: 500;
    transition: color .15s;
}
.bottom-nav a.active,
.bottom-nav a:hover {
    color: var(--color-primary);
}
.bottom-nav .material-icons { font-size: 1.5rem; }

/* ---- Page container ---- */
.page-content {
    padding: 1rem;
    padding-bottom: 5rem; /* space for bottom nav */
    max-width: 680px;
    margin: 0 auto;
}

/* ---- POI card ---- */
.poi-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,.1);
    padding: 1rem;
    display: flex;
    gap: .75rem;
    cursor: pointer;
    transition: transform .12s, box-shadow .12s;
    text-decoration: none;
    color: inherit;
}
.poi-card:hover, .poi-card:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.14);
}
.poi-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
    color: #fff;
}
.poi-card-body { flex: 1; min-width: 0; }
.poi-card-title {
    font-size: .95rem;
    font-weight: 600;
    margin: 0 0 .2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.poi-card-desc {
    font-size: .82rem;
    color: #666;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.poi-card-meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: .4rem;
    flex-wrap: wrap;
}
.badge-cat {
    font-size: .7rem;
    padding: .15rem .5rem;
    border-radius: 99px;
    color: #fff;
    font-weight: 600;
}
.featured-star {
    color: #f5a623;
    font-size: .85rem;
    display: flex;
    align-items: center;
    gap: .1rem;
}

/* ---- Category chip ---- */
.cat-chips {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    padding-bottom: .25rem;
    scrollbar-width: none;
}
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chip {
    display: flex;
    align-items: center;
    gap: .3rem;
    padding: .35rem .8rem;
    border-radius: 99px;
    border: 2px solid transparent;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
    cursor: pointer;
    white-space: nowrap;
    font-size: .8rem;
    font-weight: 600;
    transition: all .15s;
    color: #555;
}
.cat-chip.active {
    color: #fff;
}
.cat-chip .material-icons { font-size: 1rem; }

/* ---- Search bar ---- */
.search-bar {
    position: relative;
    margin-bottom: 1rem;
}
.search-bar input {
    width: 100%;
    padding: .65rem 1rem .65rem 2.5rem;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    font-size: .9rem;
    background: #fff;
    outline: none;
    transition: border-color .15s;
}
.search-bar input:focus { border-color: var(--color-primary); }
.search-bar .search-icon {
    position: absolute;
    left: .6rem;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 1.2rem;
}

/* ---- Welcome hero ---- */
.welcome-hero {
    background: var(--color-primary);
    color: #fff;
    padding: 2rem 1.5rem;
    border-radius: 0 0 24px 24px;
    text-align: center;
    margin-bottom: 1.5rem;
}
.welcome-hero h1 { font-size: 1.5rem; margin: 0 0 .5rem; }
.welcome-hero p  { font-size: .95rem; opacity: .88; margin: 0; }

/* ---- Map container ---- */
.map-container {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
}
.map-page-wrapper {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
}
.map-page-wrapper .map-area {
    flex: 1;
    position: relative;
}
.map-floating-chips {
    position: absolute;
    top: .75rem;
    left: .75rem;
    right: .75rem;
    display: flex;
    gap: .4rem;
    overflow-x: auto;
    scrollbar-width: none;
    z-index: 10;
}
.map-floating-chips::-webkit-scrollbar { display: none; }
.map-locate-btn {
    position: absolute;
    bottom: 5rem;
    right: 1rem;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    z-index: 10;
    font-size: 1.3rem;
}

/* ---- POI detail ---- */
.poi-detail-hero {
    background: var(--color-primary);
    color: #fff;
    padding: 1.5rem 1rem 2rem;
    margin-bottom: 0;
}
.poi-detail-card {
    background: #fff;
    border-radius: 20px 20px 0 0;
    margin-top: -1.5rem;
    padding: 1.5rem 1rem;
    min-height: 60vh;
}
.contact-btn {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    flex: 1;
    justify-content: center;
    transition: opacity .15s;
}
.contact-btn:hover { opacity: .85; }
.contact-btn.phone  { background: #E8F5E9; color: #2E7D32; }
.contact-btn.whatsapp { background: #E8F5E9; color: #1B5E20; }
.contact-btn.website  { background: #E3F2FD; color: #1565C0; }

/* ---- Skeleton loader ---- */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
    border-radius: 8px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---- Empty state ---- */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
}
.empty-state .material-icons { font-size: 3rem; opacity: .4; }
.empty-state p { margin: .75rem 0 0; font-size: .9rem; }

/* ---- Responsive ---- */
@media (max-width: 400px) {
    .poi-card { padding: .75rem; }
    .welcome-hero { padding: 1.5rem 1rem; }
}
