/* ============================================
   SURF CITY HEART — GUIDEBOOK STYLES
   Mobile-first, ocean-themed design
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Ocean-inspired palette */
    --ocean-deep: #1a6b8a;
    --ocean-mid: #2e9ab8;
    --ocean-light: #7ec8e3;
    --ocean-pale: #d4eef7;
    --ocean-wash: #eef7fb;
    --sand-warm: #f5e6d3;
    --sand-light: #faf4ed;
    --coral: #e8746a;
    --coral-soft: #f4a59e;
    --sunset: #f7a44c;
    --driftwood: #8b7355;
    --night: #1c2d3a;
    --text-primary: #1c2d3a;
    --text-secondary: #4a6274;
    --text-muted: #7e97a7;
    --white: #ffffff;
    --bg: #f0f4f8;
    --card-bg: #ffffff;
    --card-shadow: 0 2px 12px rgba(28, 45, 58, 0.08);
    --card-shadow-hover: 0 4px 20px rgba(28, 45, 58, 0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --transition: 0.2s ease;
    --header-height: 56px;
    --tab-height: 72px;
    --bottom-height: 56px;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    padding-top: calc(var(--header-height) + var(--tab-height));
    padding-bottom: var(--bottom-height);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--ocean-deep);
    text-decoration: none;
}



/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--white);
    border-bottom: 1px solid rgba(28, 45, 58, 0.08);
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-inner {
    max-width: 640px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
}

.header-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ocean-wash);
    color: var(--ocean-deep);
    transition: var(--transition);
}

.header-contact:hover {
    background: var(--ocean-pale);
}

/* --- Tab Navigation --- */
.tab-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    height: var(--tab-height);
    background: var(--white);
    border-bottom: 1px solid rgba(28, 45, 58, 0.06);
    z-index: 99;
}

.tab-nav-inner {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    padding: 0 2px;
}

.tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 2px;
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    position: relative;
    min-width: 0;
    flex: 1;
    border-radius: var(--radius-xs);
    color: var(--text-muted);
    font-family: inherit;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--ocean-deep);
    border-radius: 3px 3px 0 0;
    transition: width 0.25s ease;
}

.tab-btn.active {
    color: var(--ocean-deep);
}

.tab-btn.active::after {
    width: 60%;
}

.tab-icon {
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
}

.tab-icon svg {
    display: block;
    opacity: 0.6;
    transition: var(--transition);
}

.tab-btn.active .tab-icon svg {
    opacity: 1;
}

.tab-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* --- Main Content --- */
.main-content {
    max-width: 640px;
    margin: 0 auto;
    padding: 16px;
}

/* --- Tab Panels --- */
.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Hero --- */
.hero {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 260px;
    margin-bottom: 16px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.hero:hover .hero-bg {
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(28, 45, 58, 0.85) 0%,
        rgba(28, 45, 58, 0.3) 50%,
        rgba(28, 45, 58, 0.1) 100%
    );
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 20px;
    color: var(--white);
}

.hero-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 400;
    margin-bottom: 12px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--white);
}

/* --- Cards --- */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 12px;
    box-shadow: var(--card-shadow);
    transition: box-shadow var(--transition);
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.card-section-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary);
}

/* --- Host Card --- */
.host-card {
    background: linear-gradient(135deg, var(--ocean-wash) 0%, var(--white) 100%);
}

.host-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.host-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ocean-deep), var(--ocean-mid));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.host-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.host-tag {
    font-size: 12px;
    color: var(--ocean-deep);
    font-weight: 500;
}

.host-message {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.host-contact {
    display: flex;
    gap: 8px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--white);
    border: 1px solid rgba(28, 45, 58, 0.12);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition);
}

.contact-btn:hover {
    background: var(--ocean-wash);
    border-color: var(--ocean-light);
}

/* --- Quick Grid --- */
.quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.quick-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.quick-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-1px);
}

.quick-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.quick-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

.quick-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.quick-detail {
    font-size: 12px;
    color: var(--text-muted);
}

/* --- Highlights --- */
.highlights-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.highlight-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.highlight-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.highlight-item strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.highlight-item p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- Promo Card --- */
.promo-card {
    background: linear-gradient(135deg, #1a6b8a 0%, #2e9ab8 50%, #7ec8e3 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.promo-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}

.promo-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.promo-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
}

.promo-text {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 16px;
    line-height: 1.5;
}

.perks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.perk {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--white);
    color: var(--ocean-deep);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    transition: var(--transition);
    width: 100%;
    justify-content: center;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* --- Panel Header --- */
.panel-header {
    margin-bottom: 16px;
}

.panel-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.panel-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

/* --- Info Items --- */
.info-item {
    display: flex;
    gap: 14px;
}

.info-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ocean-wash);
    border-radius: var(--radius-sm);
}

.info-content h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.info-main {
    font-size: 16px;
    font-weight: 600;
    color: var(--ocean-deep);
    margin-bottom: 4px;
}

.info-detail {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--ocean-wash);
    color: var(--ocean-deep);
    border-radius: var(--radius-xs);
    font-size: 13px;
    font-weight: 600;
    margin-top: 10px;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--ocean-pale);
}

/* --- Rules --- */
.rules-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rule-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.rule-icon {
    font-size: 22px;
    flex-shrink: 0;
    width: 36px;
    text-align: center;
}

.rule-item strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.rule-item p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- Info Detail Box --- */
.info-detail-box {
    background: var(--ocean-wash);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.info-detail-box p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
}

.info-detail-box ul {
    padding-left: 20px;
}

.info-detail-box li {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 6px;
}

/* --- Amenities Grid --- */
.amenities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.amenity-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    background: var(--ocean-wash);
    border-radius: 24px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition);
}

.amenity-chip:hover {
    background: var(--ocean-pale);
}

/* --- Tips --- */
.tips-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tip-item {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 12px 14px;
    background: var(--sand-light);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--sunset);
}

.tip-item strong {
    color: var(--text-primary);
}

/* --- Checklist --- */
.checklist {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.checklist-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.check-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ocean-deep);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.checklist-item strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.checklist-item p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* --- Thank You Card --- */
.thank-you-card {
    text-align: center;
    background: linear-gradient(135deg, var(--sand-light) 0%, var(--ocean-wash) 100%);
}

.thank-you-emoji {
    font-size: 40px;
    margin-bottom: 8px;
}

.thank-you-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.thank-you-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Map/List Toggles --- */
.view-toggle {
    display: flex;
    background: rgba(28, 45, 58, 0.05);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 20px;
}

.view-toggle-btn {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    border-radius: var(--radius-xs);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.view-toggle-btn.toggle-active {
    background: var(--white);
    color: var(--ocean-deep);
    box-shadow: 0 2px 8px rgba(28, 45, 58, 0.1);
}

/* --- Leaflet Map --- */
.leaflet-map {
    height: 480px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    box-shadow: var(--card-shadow);
    z-index: 10;
}

/* --- Place Cards --- */
.place-card {
    margin-bottom: 16px;
    padding: 16px;
}

.place-header {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    align-items: flex-start;
}

.place-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ocean-wash);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.place-header-text {
    flex: 1;
}

.place-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.place-distance {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--ocean-deep);
    background: var(--ocean-wash);
    padding: 2px 8px;
    border-radius: 12px;
}

.place-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.place-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.place-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border-radius: var(--radius-xs);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.action-call {
    background: var(--ocean-wash);
    color: var(--ocean-deep);
}

.action-map {
    background: var(--sand-warm);
    color: var(--driftwood);
}

.action-btn:hover {
    filter: brightness(0.95);
}

/* --- Section Labels --- */
.section-label {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 24px 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--ocean-wash);
}

/* --- Bottom CTA --- */
.bottom-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-height);
    background: var(--white);
    border-top: 1px solid rgba(28, 45, 58, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transform: translateY(100%);
}

.bottom-cta-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 100%;
    background: var(--ocean-deep);
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
}

.bottom-cta-link:hover {
    background: var(--ocean-mid);
}

/* --- Map Markers & Popups --- */
.custom-marker {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.marker-pin {
    width: 36px;
    height: 36px;
    border-radius: 50% 50% 50% 0;
    background: var(--ocean-deep);
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -18px 0 0 -18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    border: 2px solid var(--white);
}

.marker-pin span {
    transform: rotate(45deg);
    font-size: 16px;
    line-height: 1;
}

.marker-home {
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
    background: var(--coral);
}

.marker-home span {
    font-size: 20px;
}

/* Custom Popup */
.leaflet-popup-content-wrapper {
    background: var(--white);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    box-shadow: var(--card-shadow-hover);
    padding: 0;
}

.leaflet-popup-tip {
    background: var(--white);
}

.leaflet-popup-content {
    margin: 16px;
    width: 240px !important;
}

.map-popup {
    font-family: 'Inter', sans-serif;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 8px;
}

.popup-header strong {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.3;
}

.popup-dist {
    font-size: 11px;
    background: var(--ocean-wash);
    color: var(--ocean-deep);
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.popup-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 12px;
}

.popup-actions {
    display: flex;
    gap: 6px;
}

.popup-action {
    flex: 1;
    text-align: center;
    background: var(--ocean-wash);
    color: var(--ocean-deep);
    padding: 6px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
}

.popup-action:hover {
    background: var(--ocean-pale);
}
