/* Frontend Catalog Styles */
.tdm-catalog-wrapper {
    font-family: inherit;
    margin: 20px 0;
}

.tdm-catalog-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
    flex-wrap: wrap;
}

.tdm-catalog-search {
    flex: 1 1 320px;
    padding: 10px 15px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    max-width: none;
}

.tdm-catalog-search-btn {
    width: auto !important;
    min-width: 120px;
    padding: 10px 18px !important;
    line-height: 1.2;
}

.tdm-catalog-empty-state {
    padding: 14px 16px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
}

.tdm-catalog-loading {
    margin-top: 18px;
    text-align: center;
    color: #64748b;
}

.tdm-catalog-sentinel {
    width: 100%;
    height: 1px;
}

.is-hidden {
    display: none !important;
}

/* Grid System */
.tdm-catalog-grid {
    display: grid;
    gap: 20px;
}

.tdm-grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.tdm-grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.tdm-grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .tdm-catalog-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .tdm-catalog-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Card Styling */
.tdm-catalog-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.tdm-catalog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.tdm-catalog-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    display: block;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.tdm-placeholder-img {
    aspect-ratio: 1 / 1;
    width: 100%;
    background: #f0f0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
}

.tdm-catalog-card .tdm-card-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tdm-catalog-card .tdm-card-body h3 {
    margin: 0 0 10px 0 !important;
    font-size: 1.1em !important;
    font-weight: bold !important;
    line-height: 1.3 !important;
}

.tdm-catalog-card .tdm-price {
    font-size: 1.2em !important;
    color: #b32d2e !important;
    font-weight: bold !important;
    margin-bottom: 15px !important;
}

.tdm-catalog-card .tdm-btn {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 10px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    cursor: pointer;
    border: none !important;
    transition: background 0.2s;
    white-space: normal !important;
}

.tdm-btn-primary {
    background: #DE9450 !important;
    color: #fff !important;
}

.tdm-btn-primary:hover {
    background: #d28c4b !important;
    color: #fff !important;
}

.tdm-btn-success {
    background: #DE9450 !important;
    color: #fff !important;
}

.tdm-btn-success:hover {
    background: #d28c4b !important;
    color: #fff !important;
}

/* ═══════════════════════════════════════════════
   TDM Map Product Page
   ═══════════════════════════════════════════════ */

.tdm-product-page {
    font-family: inherit;
    color: #1a1a2e;
    --tdm-phone-width: 252px;
    --tdm-phone-height: 520px;
    --tdm-phone-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    --tdm-slider-dot-active-scale: 1.4;
}

.tdm-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Hero ── */
.tdm-hero {
    padding: 80px 0;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.tdm-hero-inner {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.tdm-hero-text {
    flex: 1;
    min-width: 280px;
}

.tdm-hero-eyebrow {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 80px 0;
    margin-bottom: 12px;
}

.tdm-hero-title {
    font-size: 3.8rem !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    color: #1a1a2e !important;
    margin-bottom: 20px !important;
}

.tdm-hero-subtitle {
    font-size: 1.2rem !important;
    color: #555 !important;
    line-height: 1.7 !important;
    margin-bottom: 32px !important;
}

.tdm-hero-price-row {
    margin-bottom: 24px;
}

.tdm-hero-price {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
}

.tdm-hero-price .woocommerce-Price-amount {
    font-size: inherit;
    color: inherit;
}

.tdm-hero-form {
    margin: 0 !important;
}

.tdm-cta-btn {
    display: inline-block !important;
    padding: 16px 48px !important;
    border-radius: 50px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    border: none !important;
    transition: all 0.25s ease;
    text-decoration: none !important;
    letter-spacing: 0.5px;
    white-space: normal !important;
}

.tdm-cta-btn-primary,
.tdm-product-page button.tdm-cta-btn-primary,
.tdm-product-page a.tdm-cta-btn-primary {
    background: #2f6b6f;
    color: #fff !important;
}

.tdm-cta-btn-primary:hover,
.tdm-product-page button.tdm-cta-btn-primary:hover,
.tdm-product-page a.tdm-cta-btn-primary:hover {
    background: #245457;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(47, 107, 111, 0.3);
    color: #fff !important;
}

.tdm-cta-btn-white,
.tdm-product-page button.tdm-cta-btn-white,
.tdm-product-page a.tdm-cta-btn-white {
    background: #fff;
    color: #1a1a2e !important;
    border: 2px solid #fff;
}

.tdm-cta-btn-white:hover,
.tdm-product-page button.tdm-cta-btn-white:hover,
.tdm-product-page a.tdm-cta-btn-white:hover {
    background: transparent;
    color: #fff !important;
}

.tdm-out-of-stock {
    color: #c00;
    font-weight: 600;
}

/* Phone Mockup */
.tdm-hero-mockup {
    flex: 0 0 280px;
    display: flex;
    justify-content: center;
}

/* ── About ── */
.tdm-about-section {
    padding: 80px 0;
    background: #f8f8f8;
}

.tdm-section-title {
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: #1a1a2e !important;
    margin-bottom: 12px !important;
    text-align: center;
    line-height: 1.2 !important;
}

.tdm-section-sub {
    text-align: center;
    color: #888 !important;
    font-size: 1rem !important;
    margin-bottom: 40px !important;
}

.tdm-about-body {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.85;
    color: #444;
    text-align: right;
}

.tdm-seo-section {
    padding: 80px 0;
    background: #fff;
}

.tdm-seo-section-alt {
    background: #f8f8f8;
}

.tdm-seo-body {
    max-width: 780px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.85;
    color: #444;
    text-align: right;
}

.tdm-seo-body > *:last-child {
    margin-bottom: 0;
}

.tdm-seo-map-link {
    display: block;
    max-width: 860px;
    margin: 0 auto;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(26, 26, 46, 0.14);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tdm-seo-map-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 60px rgba(26, 26, 46, 0.2);
}

.tdm-seo-map-link img {
    width: 100%;
    display: block;
}

.tdm-seo-map-hint {
    text-align: center;
    color: #6b7280;
    font-size: 0.98rem;
    margin: 16px 0 0;
}

/* ── Static Map Pages ── */
.tdm-static-map-page {
    --tdm-static-bg: #f6f7f5;
    --tdm-static-surface: #ffffff;
    --tdm-static-border: #e4e8e7;
    --tdm-static-surface-alt: #eef3f2;
    --tdm-static-title: #142321;
    --tdm-static-text: #465654;
    --tdm-static-accent: #2f6b6f;
    background: var(--tdm-static-bg);
    color: var(--tdm-static-text);
    padding-bottom: 64px;
}

.tdm-static-map-page .tdm-container {
    width: min(90vw, 1600px);
    max-width: none;
    padding: 0;
}

.tdm-static-map-page .tdm-hero {
    background: transparent;
    border-bottom: 0;
    padding: 42px 0 20px;
}

.tdm-static-hero-shell {
    display: grid;
    gap: 28px;
    align-items: stretch;
}

.tdm-static-hero-shell--has-media {
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
}

.tdm-static-hero-shell--single {
    grid-template-columns: minmax(0, 1fr);
}

.tdm-static-map-page {
    --tdm-static-copy-font-family: var(--e-global-typography-text-font-family, inherit);
    font-family: var(--tdm-static-copy-font-family);
}

.tdm-static-map-page .tdm-hero-title,
.tdm-static-map-page .tdm-section-title,
.tdm-static-map-page .tdm-static-sidebar-title,
.tdm-static-map-page .tdm-static-related-name,
.tdm-static-map-page .tdm-about-body,
.tdm-static-map-page .tdm-seo-body,
.tdm-static-map-page .tdm-static-sidebar-empty {
    font-family: var(--tdm-static-copy-font-family) !important;
}

.tdm-static-hero-copy,
.tdm-static-hero-media,
.tdm-static-section-card {
    background: var(--tdm-static-surface);
    border: 1px solid var(--tdm-static-border);
    border-radius: 28px;
}

.tdm-static-hero-copy {
    padding: clamp(28px, 3vw, 44px);
}

.tdm-static-map-page .tdm-hero-title {
    color: var(--tdm-static-title) !important;
    font-size: clamp(2.4rem, 5vw, 4.7rem) !important;
    font-family: inherit !important;
    margin-bottom: 18px !important;
}

.tdm-static-map-page .tdm-about-body,
.tdm-static-map-page .tdm-seo-body {
    max-width: none;
    margin: 0;
    color: var(--tdm-static-text);
    font-size: 1.06rem;
    line-height: 1.95;
}

.tdm-static-map-page .tdm-about-body img,
.tdm-static-map-page .tdm-seo-body img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    margin: 18px auto;
}

.tdm-static-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.tdm-cta-btn-danger {
    background: #fff1f2 !important;
    color: #b42318 !important;
    border: 1px solid #f1b2b2 !important;
}

.tdm-cta-btn-danger:hover {
    background: #ffe4e6 !important;
    color: #912018 !important;
    border-color: #e58f8f !important;
}

.tdm-static-hero-media {
    padding: 18px;
}

.tdm-static-map-block {
    padding: 0 0 12px;
}

.tdm-static-map-panel {
    background: var(--tdm-static-surface);
    border: 1px solid var(--tdm-static-border);
    border-radius: 28px;
    padding: clamp(16px, 2vw, 22px);
}

.tdm-static-map-panel .tdm-viewer-map-frame {
    box-shadow: none;
    border-radius: 22px;
    min-height: 420px;
    height: min(68vh, 620px);
    position: relative;
    width: 100%;
}

.tdm-static-map-panel #tdm-viewer-map {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    min-height: auto;
}

.tdm-static-map-note {
    margin: 14px 6px 0;
    color: var(--tdm-static-text);
    line-height: 1.8;
}

.tdm-static-map-card {
    display: block;
    overflow: hidden;
    border-radius: 20px;
    background: var(--tdm-static-surface-alt);
    text-decoration: none;
}

.tdm-static-map-card img {
    width: 100%;
    min-height: 340px;
    height: 100%;
    display: block;
    object-fit: cover;
}

.tdm-static-map-hint {
    text-align: right;
    margin-top: 12px;
    color: var(--tdm-static-text);
}

.tdm-static-content-block {
    background: transparent;
    padding: 18px 0;
}

.tdm-static-section-card {
    padding: clamp(24px, 3vw, 42px);
}

.tdm-static-map-page .tdm-section-title {
    text-align: right;
    color: var(--tdm-static-title) !important;
    font-size: clamp(1.8rem, 2.8vw, 2.7rem) !important;
    font-family: inherit !important;
    margin-bottom: 18px !important;
}

.tdm-static-body-layout {
    display: flex;
    flex-direction: row;
    gap: 28px;
    align-items: start;
}

.tdm-static-main-content {
    flex: 1 1 auto;
    min-width: 0;
    order: 1;
}

.tdm-static-sidebar {
    flex: 0 0 320px;
    width: min(100%, 340px);
    min-width: 0;
    order: 2;
}

.tdm-static-body-layout--sidebar-left .tdm-static-main-content {
    order: 1;
}

.tdm-static-body-layout--sidebar-left .tdm-static-sidebar {
    order: 2;
}

.tdm-static-body-layout--sidebar-right .tdm-static-main-content {
    order: 2;
}

.tdm-static-body-layout--sidebar-right .tdm-static-sidebar {
    order: 1;
}

.tdm-static-sidebar-card {
    position: sticky;
    top: 24px;
    background: var(--tdm-static-surface);
    border: 1px solid var(--tdm-static-border);
    border-radius: 28px;
    padding: clamp(24px, 3vw, 42px);
}

.tdm-static-sidebar-title {
    margin: 0 0 16px !important;
    color: var(--tdm-static-title) !important;
    font-family: inherit !important;
    font-size: clamp(1.2rem, 2vw, 1.55rem) !important;
    line-height: 1.35 !important;
    text-align: center;
}

.tdm-static-related-list {
    display: grid;
    gap: 12px;
}

.tdm-static-related-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 18px 16px 16px;
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    background: transparent;
    text-align: center;
    transition: opacity 0.18s ease;
}

.tdm-static-related-item:hover,
.tdm-static-related-item:focus-visible {
    background: transparent;
    box-shadow: none;
    transform: none;
    opacity: 0.9;
}

.tdm-static-related-item--placeholder,
.tdm-static-related-item--placeholder:hover,
.tdm-static-related-item--placeholder:focus-visible {
    background: transparent;
    box-shadow: none;
    transform: none;
    border: 1px dashed var(--tdm-static-border);
    pointer-events: none;
}

.tdm-static-related-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 22px;
    background: #dfe7e6;
}

.tdm-static-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tdm-static-related-thumb.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tdm-static-related-thumb-placeholder {
    color: var(--tdm-static-text);
    font-size: 30px;
    line-height: 1;
}

.tdm-static-related-name {
    color: var(--tdm-static-title);
    font-family: inherit;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.tdm-static-sidebar-empty {
    margin: 0;
    color: var(--tdm-static-text);
    line-height: 1.8;
}

.tdm-static-theme-flat .tdm-static-hero-copy,
.tdm-static-theme-flat .tdm-static-hero-media,
.tdm-static-theme-flat .tdm-static-section-card {
    box-shadow: none;
}

.tdm-static-theme-soft {
    --tdm-static-bg: #f3efe8;
    --tdm-static-surface: #fffdf9;
    --tdm-static-border: #e8ddd0;
    --tdm-static-surface-alt: #f5ece2;
    --tdm-static-title: #34251d;
    --tdm-static-text: #5b4f46;
    --tdm-static-accent: #87664c;
}

.tdm-static-theme-soft .tdm-static-hero-copy,
.tdm-static-theme-soft .tdm-static-hero-media,
.tdm-static-theme-soft .tdm-static-section-card {
    box-shadow: 0 22px 46px rgba(106, 82, 59, 0.08);
}

.tdm-static-theme-editorial {
    --tdm-static-bg: #f5f7f8;
    --tdm-static-surface: #ffffff;
    --tdm-static-border: #d9e0e3;
    --tdm-static-surface-alt: #eef3f5;
    --tdm-static-title: #0f1720;
    --tdm-static-text: #425160;
    --tdm-static-accent: #0f5f73;
}

.tdm-static-theme-editorial .tdm-static-hero-copy {
    border-right: 6px solid var(--tdm-static-accent);
}

.tdm-static-theme-editorial .tdm-static-section-card {
    border-right: 4px solid rgba(15, 95, 115, 0.18);
}

.tdm-static-theme-editorial .tdm-static-hero-media,
.tdm-static-theme-editorial .tdm-static-section-card {
    box-shadow: 0 16px 32px rgba(15, 23, 32, 0.05);
}

/* ── Attractions ── */
.tdm-attractions-section {
    padding: 80px 0;
    background: #fff;
}

.tdm-attractions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 24px;
    margin-top: 8px;
}

.tdm-attr-card {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.tdm-attr-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

@media (max-width: 960px) {
    .tdm-static-hero-shell--has-media {
        grid-template-columns: minmax(0, 1fr);
    }

    .tdm-static-body-layout {
        flex-direction: column;
    }

    .tdm-static-sidebar-card {
        position: static;
    }

    .tdm-static-sidebar {
        flex-basis: auto;
        width: 100%;
        order: 2 !important;
    }

    .tdm-static-main-content {
        order: 1 !important;
    }

    .tdm-static-map-page .tdm-container {
        width: 90vw;
    }

    .tdm-static-map-card img {
        min-height: 260px;
    }

    .tdm-static-map-panel #tdm-viewer-map {
        min-height: 320px;
        height: 52vh;
    }
}

@media (max-width: 640px) {
    .tdm-static-map-page .tdm-hero {
        padding-top: 28px;
    }

    .tdm-static-hero-copy,
    .tdm-static-hero-media,
    .tdm-static-section-card {
        border-radius: 22px;
    }

    .tdm-static-hero-media {
        padding: 14px;
    }
}

.tdm-attr-card-img {
    height: 160px;
    overflow: hidden;
}

.tdm-attr-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.tdm-attr-card:hover .tdm-attr-card-img img {
    transform: scale(1.06);
}

.tdm-attr-card-placeholder {
    height: 100%;
    background: #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
}

.tdm-attr-card-body {
    padding: 14px 16px;
}

.tdm-attr-card-title {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin: 0 0 6px !important;
    line-height: 1.3 !important;
}

.tdm-attr-card-city {
    font-size: 0.78rem !important;
    color: #999 !important;
    margin: 0 0 5px !important;
}

.tdm-attr-card-rating {
    font-size: 0.82rem !important;
    color: #f4a100 !important;
    margin: 0 0 7px !important;
    letter-spacing: 2px;
}

.tdm-attr-card-desc {
    font-size: 0.82rem !important;
    color: #666 !important;
    line-height: 1.55 !important;
    margin: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
        line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Bottom CTA ── */
.tdm-cta-section {
    padding: 100px 0;
    background: #1a1a2e;
    text-align: center;
}

.tdm-cta-title {
    font-size: 2.4rem !important;
    font-weight: 900 !important;
    color: #fff !important;
    margin-bottom: 14px !important;
    line-height: 1.2 !important;
}

.tdm-cta-desc {
    font-size: 1.1rem !important;
    color: rgba(255, 255, 255, 0.65) !important;
    margin-bottom: 28px !important;
}

.tdm-cta-price {
    font-size: 2.4rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin-bottom: 32px !important;
}

.tdm-cta-price .woocommerce-Price-amount {
    font-size: inherit;
    color: inherit;
}

.tdm-cta-section .cart {
    display: flex;
    justify-content: center;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .tdm-hero-inner {
        flex-direction: column-reverse;
        text-align: center;
    }

    .tdm-hero-title {
        font-size: 2.4rem;
    }

    .tdm-hero-mockup {
        flex: none;
    }

    .tdm-product-page {
        --tdm-phone-width: 210px;
        --tdm-phone-height: 430px;
    }

    .tdm-attractions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tdm-cta-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .tdm-hero-title {
        font-size: 1.9rem;
    }

    .tdm-attractions-grid {
        grid-template-columns: 1fr;
    }

    .tdm-product-page {
        --tdm-phone-width: 186px;
        --tdm-phone-height: 378px;
    }
}

/* =============================================
   Gallery Section
   ============================================= */
.tdm-gallery-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.tdm-masonry-gallery {
    columns: 3;
    column-gap: 16px;
}

.tdm-masonry-item {
    break-inside: avoid;
    margin-bottom: 16px;
    overflow: hidden;
    border-radius: 8px;
}

.tdm-masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.35s ease;
}

.tdm-masonry-item:hover img {
    transform: scale(1.04);
}

@media (max-width: 768px) {
    .tdm-masonry-gallery {
        columns: 2;
    }
}

@media (max-width: 480px) {
    .tdm-masonry-gallery {
        columns: 1;
    }
}