/* Editorial presentation shared by the existing views. */
:root {
  --color-primary: #082338;
  --color-secondary: #ab4c28;
  --color-background: #faf7f0;
  --color-accent: #f2e5d4;
  --color-text: #142536;
  --color-muted: #62656a;
  --portuguese-blue: var(--color-primary);
  --azulejo-blue: var(--color-primary);
  --azulejo-white: #faf7f0;
  --azulejo-porcelain: #fffdf9;
  --terracotta-warm: var(--color-secondary);
  --mediterranean-warm: var(--color-background);
  --mediterranean-cream: #fffdf9;
  --mediterranean-sand: var(--color-accent);
  --sage-soft: #f2e5d4;
  --sage-muted: #f2e5d4;
  --serif: Georgia, "Times New Roman", serif;
  --line: #e9e1d5;
  --shadow: 0 8px 28px rgb(44 31 18 / 6%);
}
body, .shell { background: var(--color-background); color: var(--color-text); }
h1, h2, h3, .brand-name { font-family: var(--serif); letter-spacing: 0; color: var(--color-primary); }
.main { width: 100%; max-width: 1240px; min-width: 0; box-sizing: border-box; margin-inline: auto; }
.main > section, .main > div { margin-top: 32px; min-width: 0; }
.main > .hero { margin-top: 0; }
.main > .feed-head + .content-grid { margin-top: 0; }
.topbar { position: relative; top: auto; z-index: 1; background: var(--color-background); border-bottom: 1px solid var(--line); box-shadow: none; gap: 18px; grid-template-columns: auto minmax(180px,1fr) auto; }
.brand-mark { display: none; }
.brand-name { font-size: 32px; font-weight: 400; }
.search-wrap { background: #f1ece3; border: 1px solid transparent; border-radius: 24px; }
.search-wrap:focus-within { border-color: var(--color-primary); }
.top-actions { position: static; inset: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.top-actions .text-button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; white-space: nowrap; color: var(--color-muted); font-size: 13px; }
.top-actions .text-button.active { color: var(--color-secondary); background: transparent; box-shadow: inset 0 -2px var(--color-secondary); }
.primary-button, .chip.active { background: var(--color-primary); color: white; border-color: var(--color-primary); }
.primary-button { border-radius: 24px; box-shadow: none; }
.chip { background: #f1ece3; border-color: transparent; color: var(--color-text); padding: 9px 16px; }
.tabs { gap: 9px; flex-wrap: wrap; }
.tag { background: #f7e8d6; color: #603f25; border: 0; }
.tag.premium, .premium-badge { background: #f7e0cf; color: #8e3c1c; }
.section-head { margin-top: 36px; margin-bottom: 18px; }
.section-head h2 { font-size: 28px; }
.section-head p { max-width: 62ch; line-height: 1.6; }
.hero { min-height: 340px; border-radius: 16px; margin-bottom: 24px; }
.hero-content { padding: 40px; min-width: 0; }
.main > .feed-head { margin-top: 24px; }
.hero h1, .hero p { color: white; }
.masonry { columns: auto; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; align-items: start; }
.masonry.empty { display: block; width: 100%; min-width: 0; }
.feed-empty-state { width: 100%; max-width: 720px; box-sizing: border-box; margin: 0 auto; padding: 32px 24px; display: grid; justify-items: center; gap: 12px; text-align: center; background: transparent; border: 0; box-shadow: none; }
.feed-empty-state h3 { margin: 0; font-size: 26px; overflow-wrap: normal; word-break: normal; }
.feed-empty-state p { max-width: 52ch; margin: 0; overflow-wrap: normal; word-break: normal; }
.spot-card, .spot-body, .homepage-live-block, .activity-card-grid { min-width: 0; }
.spot-body h3 { overflow-wrap: break-word; word-break: normal; }
.home-section-empty { margin: 0; color: var(--color-muted); line-height: 1.6; }
.home-collections > .section-head, .home-events > .section-head { margin: 0 0 12px; }
.homepage-live-grid:has(> article:only-child) { grid-template-columns: minmax(0,1fr); }
.spot-card { margin: 0; border: 1px solid #eee6da; border-radius: 12px; background: #fffdf9; box-shadow: none; overflow: hidden; }
.spot-card::after { display: none; }
.spot-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; filter: none; }
.spot-card .spot-image-placeholder, .spot-card.image-failed::before { display: none; }
.spot-card:has(.spot-image-placeholder), .spot-card.image-failed { border-top: 3px solid var(--color-secondary); }
.feed-pagination { display: flex; justify-content: center; }
.feed-pagination:empty { display: none; }
.photo-credit { display: block; color: var(--color-muted); font-size: 12px; line-height: 1.5; margin-block: 4px; }
.photo-credit a { color: inherit; text-decoration: underline; }
.spot-body { padding: 16px; }
.spot-body h3 { font-size: 24px; line-height: 1.2; }
.spot-body p { font-size: 13px; line-height: 1.5; }
.card-save-button { border: 0; background: transparent; color: var(--color-secondary); cursor: pointer; font-size: 26px; width: 42px; height: 42px; }
.editorial-filter-row { display: flex; flex-wrap: wrap; gap: 16px; margin: 18px 0; }
.editorial-filter-row label { display: grid; gap: 8px; font-size: 13px; font-weight: 600; }
.editorial-filter-row select { min-width: 150px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 10px 14px; color: var(--color-text); font: inherit; }
.catalog-admin-list { list-style: none; margin: 0 0 20px; padding: 0; max-height: 420px; overflow-y: auto; }
.catalog-admin-list li { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; overflow-wrap: anywhere; }
.catalog-blockers { grid-column: 1 / -1; margin: 0; padding-left: 18px; color: var(--color-muted); }
.catalog-blockers li { display: list-item; border: 0; padding: 3px 0; }
.catalog-admin form { display: grid; gap: 14px; max-width: 640px; padding: 16px 0; }
.catalog-admin label { display: grid; gap: 7px; }
.catalog-admin textarea, .catalog-admin input, .catalog-admin select { width: 100%; box-sizing: border-box; }
.editorial-provenance { display: block; margin-top: 8px; font-size: 12px; font-weight: 400; color: var(--color-muted); }
.editorial-provenance a { color: var(--color-primary); text-underline-offset: 3px; }
.experience-carousel { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 0; }
.experience-card { flex: 0 0 180px; min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #f5ecdf; color: var(--color-text); text-decoration: none; scroll-snap-align: start; overflow-wrap: anywhere; }
.experience-card strong { font-family: var(--serif); font-size: 22px; }
.video-discovery-section { padding-block: 24px; border-block: 1px solid var(--line); margin-block: 24px; }
.video-discovery-section form { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; }
.video-discovery-section label { display: grid; gap: 8px; flex: 1 1 220px; }
.video-discovery-section input { box-sizing: border-box; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font: inherit; }
.video-spot-choice { display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; color: var(--color-text); }
.spot-hashtags { gap: 6px; }
.collection-card, .gem-card, .activity-spot-card, .profile-media-card { border-radius: 12px; overflow: hidden; box-shadow: none; border-color: var(--line); }
.collection-card img, .gem-card img { filter: none; }
.homepage-live-block, .social-discovery, .taxonomy-grid, .profile-page { box-shadow: none; }
.good-to-know-section { background: #f5ecdf; border: 0; border-radius: 12px; padding: 20px; }
.drawer-panel { width: min(760px,100vw); background: var(--color-background); }
.drawer-content { padding: 24px; }
.spot-detail-shell.open { overflow-y: auto; overscroll-behavior: contain; }
.spot-detail-shell > .backdrop { position: fixed; }
.spot-detail-page { position: relative; inset: auto; width: min(1120px,calc(100% - 48px)); height: auto; min-height: calc(100dvh - 64px); margin: 32px auto; overflow: visible; border-radius: 12px; }
.spot-detail-page .drawer-head { position: static; background: var(--color-background); border-radius: 12px 12px 0 0; }
.spot-detail-page .drawer-content { padding: 24px 40px 40px; }
.spot-detail-page .detail-cover-image { aspect-ratio: 16 / 7; max-height: 480px; }
.detail-no-photo { height: 110px; background: var(--color-accent); display: grid; place-items: center; border-radius: 8px; color: var(--color-primary); font: 32px var(--serif); }
.detail-primary-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-block: 22px; }
.detail-primary-actions a { text-decoration: none; display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 12px 20px; }
.spot-detail-page .text-button { display: inline-flex; align-items: center; min-height: 44px; }
.detail-section-nav { position: sticky; top: 0; z-index: 3; display: flex; flex-wrap: wrap; gap: 8px 24px; padding-block: 12px; background: var(--color-background); border-block: 1px solid var(--line); }
.detail-section-nav a { color: var(--color-primary); text-decoration: none; padding-block: 8px; font-weight: 600; }
.detail-section-nav a:focus-visible, .detail-section-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.spot-detail-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(260px,1fr); gap: 32px; padding-top: 28px; }
.spot-detail-layout > section { min-width: 0; scroll-margin-top: 100px; }
.detail-experiences, .spot-detail-layout > .comments-section { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 24px; }
.spot-detail-page .editorial-reason-section, .spot-detail-page .ideal-for-section, .spot-detail-page .accessibility-section { background: transparent; border: 0; padding: 0; margin: 0 0 28px; box-shadow: none; }
.spot-detail-page .good-to-know-section { background: transparent; padding: 0; }
.spot-detail-page .good-to-know-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.spot-detail-page .good-to-know-list > div { padding: 12px; background: var(--color-accent); border-radius: 8px; min-width: 0; }
.spot-detail-page .menu-price-section { margin: 0; padding: 20px; background: #fffdf9; border: 1px solid var(--line); border-radius: 8px; }
.comment-composer { max-width: 680px; margin-top: 20px; }
.comment-composer > summary { display: inline-flex; padding: 12px 20px; border: 1px solid var(--color-primary); border-radius: 8px; color: var(--color-primary); cursor: pointer; font-weight: 600; }
.comment-composer .comment-form { margin-top: 20px; display: grid; gap: 14px; }
.comment-form label { display: grid; gap: 8px; }
.comment-form label.check-line { display: flex; align-items: start; }
.comment-form input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 auto; }
.comment-form textarea { min-height: 110px; width: 100%; box-sizing: border-box; resize: vertical; }
.detail-moderation-copy { margin: 0; color: var(--color-muted); font-size: 13px; }
.detail-share-status:empty { display: none; }
.detail-share-url { width: 100%; box-sizing: border-box; padding: 12px; }
.spot-detail-page h1, .spot-detail-page h2, .spot-detail-page p { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .spot-detail-page { width: 100%; margin: 0; border-radius: 0; min-height: 100dvh; }
  .spot-detail-page .drawer-content { padding: 16px; }
  .spot-detail-layout { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .spot-detail-page .detail-cover-image { aspect-ratio: 4 / 3; }
  .detail-section-nav { gap: 4px 16px; font-size: 13px; }
  .spot-detail-page .good-to-know-list { grid-template-columns: minmax(0,1fr); }
  .detail-primary-actions { gap: 8px; }
}
.detail-title { font-size: 36px; }
.detail-gallery { display: block; }
.photo-stage { position: relative; overflow: hidden; border-radius: 12px; }
.photo-expand { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.photo-expand .detail-cover-image { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; filter: none; }
.photo-arrow, .photo-close { position: absolute; z-index: 2; border: 1px solid #ddd4c6; background: #fffdf9; color: var(--color-primary); border-radius: 50%; width: 42px; height: 42px; font-size: 23px; cursor: pointer; display: grid; place-items: center; }
.photo-arrow { top: 50%; transform: translateY(-50%); }
.photo-previous { left: 12px; }
.photo-next { right: 12px; }
.photo-counter { position: absolute; bottom: 12px; right: 14px; color: white; background: rgb(0 0 0 / 55%); border-radius: 16px; padding: 5px 12px; font-size: 13px; }
.detail-gallery-strip { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scroll-snap-type: x mandatory; }
.detail-gallery-strip button { flex: 0 0 88px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; scroll-snap-align: start; cursor: pointer; background: transparent; }
.detail-gallery-strip button[aria-pressed="true"] { border-color: var(--color-secondary); }
.detail-gallery-strip img { display: block; width: 100%; height: 70px; object-fit: cover; }
.photo-lightbox { padding: 0; border: 0; background: #171717; width: min(1200px,96vw); max-width: 96vw; height: 90dvh; max-height: 90dvh; border-radius: 12px; }
.photo-lightbox::backdrop { background: rgb(0 0 0 / 86%); }
.photo-lightbox > img { width: 100%; height: 100%; object-fit: contain; }
.photo-close { top: 12px; right: 12px; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 3px; }
@media (max-width: 1000px) {
  .masonry { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .topbar { grid-template-columns: auto minmax(0,1fr); }
  .top-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 620px) {
  .main { padding: 16px 16px 36px; }
  .topbar { padding: 12px 16px; gap: 10px; grid-template-columns: minmax(0,1fr); }
  .brand { width: 100%; }
  .search-wrap { width: 100%; max-width: none; }
  .top-actions { position: static; inset: auto; display: flex; grid-template-columns: none; flex-wrap: wrap; width: 100%; gap: 4px; background: transparent; border: 0; padding: 0; }
  .top-actions .text-button { display: inline-flex; flex: 0 0 auto; min-height: 40px; padding: 8px 10px; font-size: 12px; }
  .feed-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .feed-empty-state { padding: 24px 12px; }
  .feed-empty-state h3 { font-size: 24px; }
  .hero { min-height: 280px; border-radius: 12px; }
  .hero-content { padding: 24px; }
  .catalog-admin-list > li { grid-template-columns: minmax(0,1fr); }
  .masonry { grid-template-columns: 1fr; gap: 18px; }
  .spot-card img { aspect-ratio: 3 / 2; }
  .view-explore .spot-card { display: grid; grid-template-columns: 104px minmax(0,1fr); border: 0; background: transparent; gap: 12px; }
  .view-explore .spot-card > img { width: 104px; height: 120px; aspect-ratio: auto; border-radius: 10px; }
  .view-explore .spot-body { padding: 4px 0; min-width: 0; }
  .view-explore .spot-body h3 { font-size: 20px; }
  .view-explore .spot-body > p { display: none; }
  .view-explore .spot-actions { flex-wrap: wrap; gap: 6px; }
  .view-explore .spot-hashtags { overflow: hidden; max-height: 50px; }
  .section-head h2 { font-size: 26px; }
  .drawer-content { padding: 16px; }
  .detail-title { font-size: 30px; }
  .photo-lightbox { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
}
.preference-flow {
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  background: #faf8f3;
  color: #122b3a;
  padding: 28px;
  border-radius: 8px;
}
.preference-flow h2 { font-size: 28px; margin: 18px 0; }
.preference-flow progress { width: calc(100% - 64px); height: 6px; accent-color: #c96a3d; margin-right: 16px; }
.preference-content fieldset { border: 0; padding: 0; margin: 20px 0; min-width: 0; }
.preference-content legend { font-weight: 600; margin-bottom: 10px; }
.preference-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.preference-option { display: flex; gap: 10px; align-items: center; text-align: left; min-height: 64px; padding: 12px; border: 1px solid #dedbd4; border-radius: 8px; background: white; color: inherit; overflow-wrap: anywhere; cursor: pointer; }
.preference-option.active { background: #f9e9df; border-color: #c96a3d; box-shadow: inset 0 0 0 1px #c96a3d; }
.preference-option:focus-visible, .preference-cities button:focus-visible { outline: 3px solid #0f4c5c; outline-offset: 3px; }
.preference-cities, .preference-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.preference-cities button { padding: 10px 16px; border: 1px solid #dedbd4; border-radius: 8px; background: white; color: inherit; }
.preference-cities button[aria-pressed="true"] { background: #122b3a; color: white; }
.preference-actions { position: sticky; bottom: -28px; padding: 18px 0; background: #faf8f3; }
.preference-flow p { font-size: 14px; line-height: 1.5; }
@media (max-width: 540px) { .preference-flow { padding: 20px; max-height: calc(100dvh - 24px); } .preference-options { grid-template-columns: repeat(2, minmax(0, 1fr)); } .preference-flow h2 { font-size: 24px; } .preference-actions { bottom: -20px; } }
