:root {
    --bg: rgb(249 250 251 / 1);
    --surface: #ffffff;
    --ink: #1d1a16;
    --muted: #6d6257;
    --accent: #1e6b5a;
    --accent-2: #f2b25b;
    --border: #e5ddd3;
    --home-tone-1: #f6f8fb;
    --home-tone-2: #eef2f6;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'DM Sans', 'Gill Sans', 'Trebuchet MS', sans-serif;
    background-color: var(--bg);
    color: var(--ink);
    line-height: 1.6;
}

h2 {
    font-size: clamp(1.55rem, 2.2vw, 2rem);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    line-height: 1.1;
}

body.is-management-page h1 {
    font-size: clamp(1.9rem, 3.2vw, 2.8rem);
    line-height: 1.2;
}

.section-header h1 {
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    line-height: 1.1;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1100px, 90%);
    margin: 0 auto;
}

.site-header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(8px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    min-height: 60px;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
}

.nav {
    display: flex;
    gap: 18px;
    align-items: center;
}

.nav a {
    line-height: 1.2;
}

.btn,
.btn-primary,
.btn-outline {
    padding: 10px 16px;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-danger {
    background: #c93434;
    border-color: #c93434;
    color: #fff;
}

.btn-outline {
    border: 1px solid var(--accent);
    color: var(--accent);
}

.hero {
    padding: 64px 0 60px;
}

.home-hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(180deg, rgba(8, 39, 74, 0.48) 0%, rgba(8, 39, 74, 0.18) 45%, rgba(8, 39, 74, 0.36) 100%),
        url('../images/vista-aerea-santander.png') center/cover no-repeat;
    color: #f4f8fc;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.home-hero-inner {
    text-align: center;
    max-width: 920px;
}

.home-hero .eyebrow {
    color: rgba(255, 255, 255, 0.86);
    margin-bottom: 0;
}

.home-hero h1 {
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    margin-bottom: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.hero.home-hero h1 {
    font-size: clamp(2.6rem, 5vw, 4.8rem);
}

.home-hero .hero-subtitle {
    color: rgba(255, 255, 255, 0.96);
    font-size: clamp(1.05rem, 2.2vw, 1.45rem);
    max-width: none;
    white-space: nowrap;
    margin: 0 auto 130px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.explore-hero {
    min-height: 0;
    background:
        linear-gradient(180deg, rgba(8, 39, 74, 0.48) 0%, rgba(8, 39, 74, 0.18) 45%, rgba(8, 39, 74, 0.36) 100%),
        url('../images/vista-aerea-santander.png') center/cover no-repeat;
    color: #f4f8fc;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.explore-hero-inner {
    max-width: 1080px;
}

.explore-hero .section-header-centered {
    align-items: center;
    text-align: center;
    padding-top: 0;
}

.explore-hero .section-header-centered h1 {
    color: #f4f8fc;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.explore-hero .hero-subtitle {
    color: rgba(255, 255, 255, 0.96);
    font-size: clamp(1.05rem, 2.2vw, 1.45rem);
    white-space: normal;
    margin: 0 auto 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.explore-hero .filters,
.explore-hero .category-filters {
    justify-content: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    align-items: center;
}

.hero h1 {
    margin-bottom: 12px;
}

.hero-subtitle {
    color: var(--muted);
    margin-bottom: 20px;
}

.category-hero-subtitle {
    font-size: clamp(1.05rem, 2.2vw, 1.45rem);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 12px;
}

.search-bar {
    display: flex;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: 0.5rem;
    margin-bottom: 16px;
}

.search-bar input {
    flex: 1;
    border: none;
    font-size: 1rem;
    outline: none;
}

.search-bar select {
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #2d3748;
    outline: none;
    min-width: 190px;
}

.search-bar button {
    background: var(--accent-2);
    border: none;
    padding: 10px 18px;
    border-radius: 0.5rem;
    font-weight: 600;
}

.home-search-panel {
    max-width: 900px;
    margin: 0 auto 22px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: 0 22px 36px rgba(8, 22, 45, 0.26);
    padding: 5px 5px 5px 10px;
}

.home-search-panel button {
    background: #c93434;
    color: #fff;
    font-size: 1.12rem;
    font-weight: 700;
    padding: 13px 24px;
    min-width: 150px;
}

.home-quick-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.home-quick-links a {
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.84rem;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.hero-card ul {
    list-style: none;
    margin-top: 12px;
}

.hero-card li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.section {
    padding: 40px 0;
}

.home-section {
    border-top: 1px solid rgba(18, 47, 84, 0.06);
    border-bottom: 1px solid rgba(18, 47, 84, 0.06);
}

.home-section--tone-1 {
    background: linear-gradient(180deg, var(--home-tone-1) 0%, #fbfdff 100%);
}

.home-section--tone-2 {
    background: linear-gradient(180deg, var(--home-tone-2) 0%, #f8fbfd 100%);
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
}

.error-404 .container {
    text-align: center;
}

.error-404 .section-header {
    align-items: center;
    gap: 18px;
    margin-bottom: 0;
}

.error-404-action {
    margin-top: 40px;
}

.section-header-centered {
    align-items: stretch;
    text-align: left;
    padding-top: 20px;
}

.section-header-centered h1 {
    text-align: center;
    margin-bottom: 10px;
}

.home-category-grid {
    gap: 14px;
}

.home-category-card {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.home-category-card .card-body {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-category-card .card-title-row {
    width: 100%;
    text-align: center;
}

.home-category-card .card-title-row h3 {
    padding-right: 0;
    text-align: center;
}

.home-category-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    flex: 0 0 42px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.home-category-mark svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.home-category-card .card-body {
    justify-content: center;
}

.home-category-card .card-title-row h3 {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

.home-category-card {
    border: none;
    min-height: 108px;
}

.home-category-card.cat-bares { background: linear-gradient(135deg, #9b7046 0%, #7e5834 100%); }
.home-category-card.cat-cafeterias { background: linear-gradient(135deg, #8f6943 0%, #735337 100%); }
.home-category-card.cat-estetica-bienestar { background: linear-gradient(135deg, #8b5f9b 0%, #6d4a7b 100%); }
.home-category-card.cat-estancos { background: linear-gradient(135deg, #ab4d67 0%, #8f3f56 100%); }
.home-category-card.cat-farmacias { background: linear-gradient(135deg, #72a95f 0%, #5e8c4e 100%); }
.home-category-card.cat-hoteles { background: linear-gradient(135deg, #4a8aba 0%, #336f9e 100%); }
.home-category-card.cat-pubs { background: linear-gradient(135deg, #3c6299 0%, #2d4d7b 100%); }
.home-category-card.cat-restaurantes { background: linear-gradient(135deg, #bf8246 0%, #9e6735 100%); }
.home-category-card.cat-peluquerias { background: linear-gradient(135deg, #8c62ae 0%, #704d90 100%); }
.home-category-card.cat-servicios-hogar { background: linear-gradient(135deg, #4e7f8f 0%, #3c6572 100%); }
.home-category-card.cat-servicios-profesionales { background: linear-gradient(135deg, #5f7394 0%, #4a5a78 100%); }
.home-category-card.cat-supermercados { background: linear-gradient(135deg, #3b9c9a 0%, #2d7f7d 100%); }
.home-category-card.cat-tiendas-de-alimentacion { background: linear-gradient(135deg, #4f9272 0%, #3b7358 100%); }
.home-category-card.cat-tiendas-de-ropa { background: linear-gradient(135deg, #449488 0%, #33756b 100%); }
.home-category-card.cat-tiendas { background: linear-gradient(135deg, #9a5f85 0%, #7c4869 100%); }
.home-category-card.cat-transporte { background: linear-gradient(135deg, #4c7f8a 0%, #39626b 100%); }
.home-category-card.cat-gimnasios { background: linear-gradient(135deg, #50748d 0%, #3d5c72 100%); }
.home-category-card.cat-inmobiliarias { background: linear-gradient(135deg, #608a68 0%, #4a6f53 100%); }

.home-category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(24, 33, 49, 0.18);
}

.home-cta-panel {
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border);
    background: #fff;
    padding: 18px;
    border-radius: 0.5rem;
}

.home-cta-panel p {
    margin: 0;
    color: #4f5b67;
}

.home-cta-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.home-utility-links {
    justify-content: center;
}

.home-utility-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
    justify-content: center;
    padding: 10px 16px;
}

.home-utility-link img {
    width: 56px;
    height: 56px;
    border-radius: 0.5rem;
    object-fit: cover;
    border: 1px solid rgba(201, 52, 52, 0.25);
    background: #fff;
}

.home-utility-link span {
    font-weight: 700;
}

.home-cta-actions .btn-primary,
.home-cta-actions .btn-outline,
.utility-toolbar .btn-primary,
.auth-card .form .btn-primary,
.load-more-wrap .btn-primary,
.listing-empty-state .btn-primary,
.category-owner-cta .btn-primary {
    border-color: #c93434;
}

.home-cta-actions .btn-primary,
.utility-toolbar .btn-primary,
.auth-card .form .btn-primary,
.load-more-wrap .btn-primary,
.listing-empty-state .btn-primary,
.category-owner-cta .btn-primary {
    background: #c93434;
    border-color: #c93434;
    color: #fff;
}

.home-cta-actions .btn-outline,
.listing-open-filter .btn-outline {
    background: transparent;
    color: #c93434;
    border-color: #c93434;
}

.place-actions .btn-outline {
    background: transparent;
    color: #c93434;
    border-color: #c93434;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    padding: 8px 14px;
    background: transparent;
    border: 1px solid #c93434;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #c93434;
}

.chip.is-active {
    background: #c93434;
    color: #fff;
    border-color: #c93434;
}

.chip:hover {
    background: rgba(201, 52, 52, 0.08);
}

.category-filters {
    margin-top: 14px;
    margin-bottom: 18px;
}

.map {
    height: 360px;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
}

.sidebar-map .map {
    height: 220px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.card-grid.home-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.card-grid.home-random-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1000px) {
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .card-grid.home-random-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
    .card-grid.home-random-grid {
        grid-template-columns: 1fr;
    }
    .card-grid.home-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .home-hero {
        min-height: 500px;
        padding-top: 84px;
    }
    .home-search-panel {
        flex-direction: column;
        gap: 8px;
    }
    .home-search-panel select,
    .home-search-panel input,
    .home-search-panel button {
        width: 100%;
    }
    .home-cta-panel {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .home-hero .hero-subtitle {
        white-space: normal;
    }
    .card-grid.home-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .card-grid.home-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 18px;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-link-wrap {
    text-decoration: none;
    color: inherit;
}

.card-link-wrap:hover {
    color: inherit;
}

.card-link-wrap:hover .card-media img {
    opacity: 0.9;
}

.card-link-wrap:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(39, 32, 25, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-link-wrap .card-media img {
    transition: opacity 0.2s ease;
}

.logo-image {
    height: 34px;
    width: 34px;
    display: block;
    border-radius: 50%;
    object-fit: cover;
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.nav-left,
.nav-right {
    display: flex;
    gap: 18px;
    align-items: center;
}

.nav-logout-form {
    margin: 0;
}

.nav-logout-button {
    font: inherit;
    color: inherit;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    cursor: pointer;
    padding: 10px 16px;
    line-height: 1.2;
}

.nav-logout-button:hover {
    text-decoration: none;
    background: #f5f7fa;
}

.logo-center {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translate(-50%, -60%);
}

.logo-center .logo-image {
    height: 80px;
    width: 80px;
    border-radius: 50%;
    margin-bottom: 0;
    box-shadow: 0 12px 24px rgba(39, 32, 25, 0.12);
}

@media (max-width: 900px) {
    .logo-center {
        position: static;
        transform: none;
        order: -1;
    }
    .header-inner {
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-left,
    .nav-right {
        justify-content: center;
        flex-wrap: wrap;
    }
}

.footer-logo img {
    height: 48px;
    width: 48px;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 12px 24px rgba(39, 32, 25, 0.12);
    transform: translateY(0);
}

.filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filters input,
.filters select,
.form input,
.form textarea {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
}

.filters button,
.form button {
    padding: 10px 16px;
    border: none;
    border-radius: 0.5rem;
    background: var(--accent);
    color: white;
    font-weight: 600;
}

.place-hero {
    display: block;
}

.place-hero-main {
    width: 100%;
}

.place-hero h1 {
    font-size: clamp(2.6rem, 5vw, 3.6rem);
    text-align: center;
}

.place-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.place-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    margin-top: 12px;
    margin-left: auto;
}

.badge {
    background: var(--accent-2);
    color: #5c3900;
    padding: 6px 10px;
    border-radius: 0.5rem;
    font-weight: 600;
}

.place-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.place-card {
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-card,
.notice-card {
    max-width: 480px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: 0.5rem;
}

.auth-page-title {
    text-align: center;
    margin-bottom: 22px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
}

.error {
    color: #b53a2b;
    font-weight: 600;
}

.notice {
    color: #1f7a52;
    font-weight: 600;
}

.muted {
    color: var(--muted);
}

.auth-card .muted {
    margin-top: 30px;
    text-align: center;
}

.auth-card .muted a {
    color: #c93434;
    text-decoration: underline;
    font-weight: 600;
}

.text-link {
    color: var(--accent);
    font-weight: 600;
}

.site-footer {
    background: #1d1a16;
    color: #f0e9df;
    padding: 30px 0;
    margin-top: 30px;
    position: relative;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
}

.footer-copy,
.footer-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-text {
    margin: 0;
}

.footer-lang a {
    margin-left: 8px;
    color: #f0e9df;
}

@media (max-width: 800px) {
    .place-content {
        grid-template-columns: 1fr;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

.card-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.danger {
    color: #b53a2b;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-grid .gallery-hidden {
    display: none;
}

.gallery-actions {
    margin-top: 12px;
    display: flex;
    justify-content: center;
}

.gallery-actions .btn-outline {
    background: transparent;
    color: #c93434;
    border-color: #c93434;
    padding: 10px 16px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    line-height: 1.2;
}

.gallery-actions .btn-outline:hover {
    background: rgba(201, 52, 52, 0.08);
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .utility-card-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

.photo-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
}

.photo-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.checkbox {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.place-logo img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    margin: 12px 0;
}

.map-editor {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: start;
}

@media (max-width: 800px) {
    .map-editor {
        grid-template-columns: 1fr;
    }
}

.admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.admin-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.updates-message {
    max-width: none;
    margin-bottom: 16px;
}

.updates-run-card {
    margin-bottom: 16px;
}

.updates-run-card form {
    margin-top: 12px;
}

.updates-run-card .btn-primary[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
}

.updates-title {
    margin-top: 22px;
}

.updates-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.updates-row h3 {
    margin: 0;
}

.updates-badge-error {
    background: #f8dada;
    color: #7f1d1d;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 2px;
}

.icon-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #c93434;
}

.icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: #f4efe6;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.place-description {
    white-space: normal;
    line-height: 1.8;
}

.icon-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 600;
    color: var(--ink);
}

.icon-row a {
    color: #c93434;
}

.place-card .sidebar-title {
    font-size: 1.1rem;
}

.contact-box {
    padding: 18px;
    border: 1px solid #d1d6de;
    border-radius: 0.5rem;
    background: #f5f7fa;
}

.contact-links {
    margin-top: 10px;
}

.utility-quick-actions {
    margin-top: 20px;
    margin-bottom: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.utility-quick-actions .btn-primary,
.utility-quick-actions .btn-outline {
    line-height: 1.2;
}

.utility-quick-actions .btn-primary,
.utility-quick-actions .btn-outline {
    border-color: #c93434;
}

.utility-quick-actions .btn-primary {
    background: #c93434;
    border-color: #c93434;
    color: #fff;
}

.utility-quick-actions .btn-outline {
    background: transparent;
    color: #c93434;
}

.contact-links + .contact-form,
.contact-links + .claim-box,
.contact-links + .hours-box {
    margin-top: 0;
}

.contact-form {
    margin-top: 0;
    padding: 22px;
    border: 1px solid #d1d6de;
    border-radius: 0.5rem;
    background: #f5f7fa;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    color: #3d4654;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 14px;
    border: 1px solid #c5ccd6;
    border-radius: 0.5rem;
    font-size: 1rem;
    background: #fff;
}

.badge.verified {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge.verified svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.claim-box {
    margin-top: 0;
    padding: 22px;
    border: 1px solid #e3cb53;
    border-radius: 0.5rem;
    background: #f7f3df;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.listing-card {
    padding: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 24px rgba(33, 30, 27, 0.08);
}

.utility-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.listing-open-filter {
    margin-bottom: 16px;
}

.listing-card.is-hidden-by-hours {
    display: none;
}

.load-more-wrap {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.js .load-more-wrap {
    display: flex;
}

.js .seo-pagination-links {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.category-context-cta {
    margin-top: 30px;
    margin-bottom: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    text-align: center;
    color: #3f4754;
}

.category-content-divider {
    border: 0;
    border-top: 1px solid #c93434;
    margin: 40px 0;
}

.listing-empty-state {
    margin-top: 8px;
    padding: 22px;
    border: 1px solid #d7dfe8;
    background: #fbfdff;
    border-radius: 0.6rem;
}

.listing-empty-state h2 {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    line-height: 1.35;
}

.listing-empty-state p {
    margin: 0;
}

.listing-empty-state .listing-empty-actions {
    margin-top: 35px;
}

.listing-empty-state .chips {
    margin-top: 40px;
}

.other-categories-block {
    margin-top: 28px;
    padding-top: 8px;
}

.other-categories-block h2 {
    font-size: 1.35rem;
    line-height: 1.35;
    margin-bottom: 8px;
}

.other-categories-block .chips {
    margin-top: 10px;
}

.category-owner-cta {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #d7dfe8;
    border-radius: 0.7rem;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f8fc 100%);
}

.category-owner-cta h3 {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.35;
}

.category-owner-cta p {
    margin: 10px 0 14px;
}

.category-owner-cta .btn-primary {
    display: inline-flex;
}

.utility-results {
    display: grid;
    gap: 10px;
}

.utility-card {
    display: block;
    border: 1px solid #d7dfe8;
    background: #ffffff;
    border-radius: 0.5rem;
    padding: 14px 16px;
    box-shadow: 0 4px 10px rgba(24, 30, 40, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.utility-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 14px rgba(24, 30, 40, 0.08);
}

.utility-card-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: flex-start;
    gap: 12px;
}

.utility-card-main {
    min-width: 0;
}

.utility-card-head h3 {
    font-size: 1.1rem;
    line-height: 1.3;
    margin: 0;
}

.utility-address-inline {
    display: block;
    margin-top: 2px;
    color: #5b6472;
    font-weight: 600;
    font-size: 0.92rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.utility-card-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.utility-distance {
    font-size: 1.1rem;
    line-height: 1.3;
    font-weight: 700;
    color: inherit;
    white-space: nowrap;
}

.utility-distance:empty {
    display: none;
}

.utility-card-meta {
    margin-top: 4px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: #5b6472;
    font-weight: 600;
    font-size: 0.92rem;
}

.utility-card-meta .is-open {
    color: #1e6b5a;
}

.utility-card-meta .is-closed {
    color: #b53a2b;
}

.utility-card-status .is-open {
    color: #1e6b5a;
    background: #e7f6f1;
    border: 1px solid #bfe7d9;
    border-radius: 999px;
    padding: 2px 10px;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    line-height: 1.3;
}

.utility-card-status .is-closed {
    color: #b53a2b;
    background: #fdecea;
    border: 1px solid #f7c8c1;
    border-radius: 999px;
    padding: 2px 10px;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    line-height: 1.3;
}

/* Explore grid: softer elevation (about half) on default and hover */
.category-filters + .card-grid .listing-card {
    box-shadow: 0 5px 12px rgba(33, 30, 27, 0.04);
}

.category-filters + .card-grid .listing-card.card-link-wrap:hover {
    box-shadow: 0 6px 12px rgba(39, 32, 25, 0.06);
}

.card-media {
    display: block;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-bottom: 1px solid #f0ece6;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-placeholder {
    width: 100%;
    height: 100%;
    background: #efe7dd;
    color: #7a6f63;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-category {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c93434;
    font-size: 0.74rem;
}

.card-title-row {
    position: relative;
    display: block;
}

.card-title-row h3 {
    font-size: 1.25rem;
    line-height: 1.35;
    padding-right: 78px;
}

.mini-verified {
    width: 20px;
    height: 20px;
    border-radius: 0.5rem;
    background: #1e6b5a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.mini-verified svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.card-open-status {
    position: absolute;
    right: 0;
    top: 2px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 0.5rem;
    background: #f0e9df;
    color: var(--muted);
    white-space: nowrap;
}

.card-open-status.open {
    background: #e6f5ee;
    color: #1e6b5a;
}

.card-open-status.closed {
    background: #f6e6e3;
    color: #b53a2b;
}

.card-excerpt {
    color: #6f6a60;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hours-box {
    margin-top: 0;
    padding: 18px;
    border: 1px solid #d1d6de;
    border-radius: 0.5rem;
    background: #f5f7fa;
}

.hours-box ul {
    list-style: none;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--muted);
    font-weight: 600;
}

.hours-sep {
    height: 6px;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-weight: 600;
    color: var(--muted);
    padding: 6px 8px;
    border-radius: 0.5rem;
}

.hours-row.is-today {
    background: #eef5f2;
    color: var(--ink);
}

.hours-day {
    text-transform: capitalize;
}

.hours-time {
    text-align: right;
    color: inherit;
}

.beach-hero {
    padding-top: 30px;
}

.beach-hero-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.beach-hero-card h1 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.beach-hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.beach-hero-content .eyebrow {
    margin-bottom: 14px;
}

.beach-hero-content h1 {
    margin-bottom: 16px;
}

.beach-hero-content .hero-subtitle {
    margin: 0;
}

.beach-hero-content .chips {
    margin-top: 16px;
}

.beach-cover img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 0.5rem;
}

@media (max-width: 900px) {
    .beach-hero-card {
        grid-template-columns: 1fr;
    }
}

.beach-map {
    height: 220px;
}

.beaches-global-map {
    margin-bottom: 22px;
}

.beaches-global-map.hours-box {
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: none;
}

.beaches-global-map h2 {
    margin: 0 0 12px;
}

.beaches-global-map .map {
    height: 340px;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #fff;
    overflow: hidden;
}

.map {
    background: #e8dfd4;
}

.section-title {
    margin-bottom: 10px;
}

.place-description {
    margin-top: 8px;
}

.photo-grid {
    margin-top: 12px;
}

.section-title + .photo-grid {
    margin-top: 14px;
}

.place-description + .section-title {
    margin-top: 18px;
}

.place-hero-image {
    width: 100%;
    height: 320px;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid var(--border);
}

.place-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 2px 0 6px;
}

.contact-form .sidebar-title,
.claim-box .sidebar-title,
.hours-box .sidebar-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.claim-box .sidebar-title {
    line-height: 1.1;
    color: #874e0d;
}

.claim-box p {
    margin: 0;
    color: #ab6514;
    font-size: 1.05rem;
    line-height: 1.45;
}

.claim-box .btn-primary,
.contact-form .btn-primary {
    width: 100%;
    text-align: center;
    justify-content: center;
    border-radius: 0.5rem;
    padding: 12px 16px;
    font-size: 1.05rem;
    font-weight: 700;
}

.claim-box .btn-primary {
    background: #e8b600;
    border-color: #e8b600;
    color: #fff;
}

.claim-box .btn-primary:hover {
    background: #d7a900;
    border-color: #d7a900;
}

.contact-form .btn-primary {
    background: #c93434;
    border-color: #c93434;
}

.contact-form .btn-primary:hover {
    background: #b52d2d;
    border-color: #b52d2d;
}

.hours-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.open-status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 0.5rem;
    background: #f0e9df;
    color: var(--muted);
}

.open-status.open {
    background: #e6f5ee;
    color: #1e6b5a;
}

.open-status.closed {
    background: #f6e6e3;
    color: #b53a2b;
}

.open-status.unavailable {
    background: #f0e9df;
    color: var(--muted);
}

.related-section {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.related-section .card-grid {
    margin-top: 14px;
}

/* Minimal sidebar map + contact style */
.place-card .sidebar-map,
.place-card .contact-box,
.place-card .contact-form,
.place-card .hours-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: none;
}

.place-card .sidebar-title {
    margin: 0 0 12px;
    font-size: 1.08rem;
}

.place-card .sidebar-map .map {
    height: 205px;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
}

.place-card .sidebar-map .leaflet-control-zoom a {
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 0.5rem;
}

.place-card .sidebar-map .leaflet-popup-content-wrapper {
    border-radius: 0.5rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.place-card .sidebar-map .leaflet-popup-content {
    margin: 10px 12px;
    color: #111827;
    font-weight: 600;
}

.place-card .contact-links {
    gap: 14px;
}

.place-card .icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: #6b7280;
}

.place-card .icon-row {
    color: #4b5563;
    font-weight: 500;
}

.place-card .icon-row a {
    color: #c93434;
}

.place-card .icon-link {
    color: #c93434;
    font-weight: 600;
}

.turnstile-field {
    margin: 10px 0 14px;
}
