:root {
    --ink: #17212b;
    --muted: #657280;
    --line: #d9e1e8;
    --paper: #ffffff;
    --soft: #f4f7f9;
    --brand: #126b6f;
    --brand-dark: #0d4f52;
    --accent: #d44f2a;
    --gold: #f3b43f;
    --ok: #207447;
    --danger: #bd2d2d;
    --shadow: 0 14px 38px rgba(23, 33, 43, .08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--soft);
    line-height: 1.55;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 clamp(18px, 4vw, 56px);
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 6px 22px rgba(23, 33, 43, .06);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--brand-dark);
    white-space: nowrap;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    color: white;
    background: var(--brand);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(10px, 2vw, 22px);
    color: var(--muted);
    font-weight: 700;
}

.main-nav a:hover {
    color: var(--brand);
}

.menu-toggle,
.mobile-actions {
    display: none;
}

.menu-button {
    width: 40px;
    height: 36px;
    display: grid;
    place-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
}

.page {
    padding-top: 72px;
}

.notice {
    max-width: 1120px;
    margin: 22px auto 0;
    padding: 12px 16px;
    border: 1px solid #b9d8c9;
    background: #effaf4;
    color: var(--ok);
    border-radius: 8px;
}

.hero {
    min-height: 430px;
    display: grid;
    align-items: center;
    padding: 58px clamp(18px, 4vw, 56px) 72px;
    color: white;
    background:
        linear-gradient(90deg, rgba(13, 79, 82, .94), rgba(18, 107, 111, .76)),
        url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1600&q=80') center/cover;
}

.hero-inner {
    max-width: 1120px;
    width: 100%;
    margin: 0 auto;
}

.hero h1 {
    max-width: 760px;
    margin: 0 0 16px;
    font-size: clamp(36px, 7vw, 72px);
    line-height: 1.02;
    letter-spacing: 0;
}

.hero p {
    max-width: 650px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, .86);
    font-size: 18px;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    max-width: 880px;
    padding: 14px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

select,
input,
textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    color: var(--ink);
    font: inherit;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.btn,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 18px;
    border: 0;
    border-radius: 8px;
    background: var(--brand);
    color: white;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.btn:hover,
button:hover {
    background: var(--brand-dark);
}

.btn.small {
    min-height: 36px;
    padding: 7px 12px;
}

.btn.alt {
    background: var(--ink);
}

.btn.danger,
button.danger {
    background: var(--danger);
}

.section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 46px clamp(18px, 4vw, 0px);
}

.section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.section-title h2 {
    margin: 0;
    font-size: 28px;
}

.section-title p {
    margin: 4px 0 0;
    color: var(--muted);
}

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

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(23, 33, 43, .04);
}

.listing-card h3,
.card h3 {
    margin: 0 0 8px;
}

.listing-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 14px;
    background: var(--line);
}

.listing-hero-image {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 18px;
    background: var(--line);
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
    color: var(--muted);
    font-size: 14px;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eaf4f4;
    color: var(--brand-dark);
    font-weight: 700;
}

.info-band {
    background: white;
    border-block: 1px solid var(--line);
}

.info-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.plan-card {
    position: relative;
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.plan-card:hover {
    transform: translateY(-5px);
    border-color: rgba(18, 107, 111, .38);
    box-shadow: 0 18px 44px rgba(23, 33, 43, .13);
}

.plan-badge {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eaf4f4;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 800;
}

.paid-plan {
    border-color: rgba(212, 79, 42, .45);
}

.paid-plan .plan-badge {
    background: #fff1e8;
    color: var(--accent);
}

.plan-card ul {
    padding-left: 18px;
}

.latest-card,
.category-card,
.place-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.latest-card:hover,
.category-card:hover,
.place-card:hover {
    transform: translateY(-5px);
    border-color: rgba(18, 107, 111, .38);
    box-shadow: 0 18px 44px rgba(23, 33, 43, .13);
}

.latest-card::after,
.category-card::after,
.place-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
}

.latest-card:hover::after,
.category-card:hover::after,
.place-card:hover::after {
    transform: scaleX(1);
}

.latest-card {
    padding: 0;
}

.latest-image-wrap {
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background: var(--line);
}

.latest-card .listing-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    margin: 0;
    border-radius: 0;
    transition: transform .28s ease, filter .28s ease;
}

.latest-card:hover .listing-thumb {
    transform: scale(1.05);
    filter: saturate(1.12) contrast(1.04);
}

.latest-card-body {
    padding: 18px 18px 10px;
    flex: 1;
}

.latest-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0 18px 18px;
}

.category-card,
.place-card {
    color: var(--ink);
}

.category-icon,
.place-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 8px;
    color: white;
    background: var(--brand);
    font-size: 22px;
    font-weight: 900;
    transition: transform .22s ease, background .22s ease;
}

.category-card:hover .category-icon,
.place-card:hover .place-icon {
    transform: rotate(-4deg) scale(1.06);
    background: var(--accent);
}

.category-card p,
.place-card p,
.latest-card p {
    color: var(--muted);
}

.auth-wrap,
.panel-wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 42px clamp(18px, 4vw, 0px);
}

.form-box {
    max-width: 520px;
    margin: 0 auto;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 26px;
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    gap: 14px;
}

.field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 800;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.table th,
.table td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.table th {
    background: #eef4f5;
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.share-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.share-links a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 800;
}

.share-links a:hover {
    border-color: var(--brand);
    background: #eaf4f4;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 22px 0;
}

.stat {
    border-left: 5px solid var(--accent);
}

.detail-layout {
    display: grid;
    grid-template-columns: 1.7fr .8fr;
    gap: 24px;
}

.review {
    border-top: 1px solid var(--line);
    padding-top: 14px;
    margin-top: 14px;
}

.stars {
    color: var(--gold);
    font-weight: 900;
}

.site-footer {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
    padding: 34px clamp(18px, 4vw, 56px);
    background: var(--ink);
    color: white;
}

.site-footer p {
    color: rgba(255, 255, 255, .72);
}

.footer-logo {
    color: white;
}

.footer-links {
    display: grid;
    gap: 10px;
    align-content: start;
}

.copyright {
    grid-column: 1 / -1;
    margin: 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

@media (max-width: 820px) {
    .site-header {
        height: auto;
        min-height: 72px;
        flex-wrap: nowrap;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .page {
        padding-top: 72px;
    }

    .mobile-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-left: auto;
    }

    .main-nav {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        display: none;
        width: 100%;
        padding: 12px 18px 18px;
        background: white;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 26px rgba(23, 33, 43, .08);
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .main-nav a {
        min-height: 42px;
        display: flex;
        align-items: center;
        padding: 8px 10px;
        border-radius: 8px;
    }

    .main-nav a:hover {
        background: var(--soft);
    }

    .main-nav .desktop-search {
        display: none;
    }

    .main-nav .btn.small {
        justify-content: center;
    }

    .menu-toggle:checked ~ .main-nav {
        display: flex;
    }

    .search-panel,
    .grid,
    .info-list,
    .plan-grid,
    .dashboard-cards,
    .detail-layout,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 500px;
    }

    .table {
        display: block;
        overflow-x: auto;
    }
}

.detail-layout {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}

.detail-layout > article,
.detail-layout > aside {
    min-width: 0;
}

.sidebar-stack {
    width: 100%;
    display: grid;
    gap: 18px;
    align-content: start;
    position: sticky;
    top: 90px;
}

.sidebar-stack .card {
    width: 100%;
    min-width: 0;
}

.listing-hero-image {
    width: 100%;
    height: 320px;
    object-fit: scale-down;
    border-radius: 8px;
    margin-bottom: 16px;
    display: block;
}

.listing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.listing-description {
    margin: 12px 0 24px;
    overflow-wrap: anywhere;
}

.detail-table {
    display: grid;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    margin: 12px 0 22px;
    box-shadow: 0 10px 28px rgba(23, 33, 43, .06);
}

.detail-table div {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
    background: white;
}

.detail-table div:last-child {
    border-bottom: 0;
}

.detail-table span,
.detail-table a {
    min-width: 0;
    overflow-wrap: anywhere;
}

.detail-table strong {
    color: var(--brand-dark);
}

.share-box {
    margin: 18px 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.share-btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 13px;
    border: 0;
    border-radius: 8px;
    color: white;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
}

.share-btn span {
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
}

.share-btn.whatsapp { background: #25d366; }
.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #111827; }
.share-btn.copy { background: var(--accent); }

.map-view-box {
    margin: 14px 0 24px;
}

.map-view-box iframe {
    display: block;
    width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 14px 34px rgba(23, 33, 43, .12);
}

.ad-banner {
    position: relative;
    overflow: hidden;
    color: white;
    background:
        linear-gradient(135deg, rgba(18, 107, 111, .95), rgba(212, 79, 42, .82)),
        url('https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=900&q=80') center/cover;
}

.ad-banner.secondary {
    background:
        linear-gradient(135deg, rgba(23, 33, 43, .94), rgba(18, 107, 111, .78)),
        url('https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&w=900&q=80') center/cover;
}

.ad-banner span {
    display: inline-flex;
    padding: 4px 8px;
    margin-bottom: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    font-size: 12px;
    font-weight: 800;
}

.ad-banner h3 {
    color: white;
}

.ad-banner p {
    color: rgba(255, 255, 255, .88);
}

.side-list {
    display: grid;
    gap: 8px;
}

.side-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
    font-weight: 700;
}

.side-list span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.side-list small {
    flex: 0 0 auto;
    color: var(--muted);
}

.recent-listings {
    display: grid;
    gap: 10px;
}

.recent-listings a {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.recent-listings a:last-child {
    border-bottom: 0;
}

.recent-listings strong,
.recent-listings span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.recent-listings span {
    color: var(--muted);
    font-size: 13px;
}

.review-form {
    margin-bottom: 18px;
}

details {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    margin-bottom: 10px;
    overflow: hidden;
}

details summary {
    cursor: pointer;
    padding: 12px 14px;
    font-weight: 800;
    color: var(--brand-dark);
}

details p {
    margin: 0;
    padding: 0 14px 14px;
    color: var(--muted);
}

@media (max-width: 980px) {
    .detail-layout {
        grid-template-columns: 1fr;
        width: min(760px, calc(100% - 24px));
        gap: 18px;
    }

    .sidebar-stack {
        position: static;
        top: auto;
    }
}

@media (max-width: 700px) {
    .detail-layout {
        width: calc(100% - 20px);
        gap: 14px;
    }

    .listing-hero-image {
        height: 100%;
    }

    .detail-table div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .listing-actions,
    .share-buttons {
        display: grid;
        grid-template-columns: 1fr;
    }

    .listing-actions .btn,
    .share-btn,
    .map-view-box .btn {
        width: 100%;
    }

    .card {
        padding: 14px;
    }
}


