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

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

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

.tdm-catalog-sort {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 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;
}

.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;
    font-size: 1.1em;
    font-weight: bold;
}

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

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

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

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

/* ═══════════════════════════════════════════════
   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;
    font-weight: 900;
    line-height: 1.1;
    color: #1a1a2e;
    margin-bottom: 20px;
}

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

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

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

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

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

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

.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;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 12px;
    text-align: center;
}

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

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

/* ── 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);
}

.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;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px;
    line-height: 1.3;
}

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

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

.tdm-attr-card-desc {
    font-size: 0.82rem;
    color: #666;
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-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;
    font-weight: 900;
    color: #fff;
    margin-bottom: 14px;
}

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

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

.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;
    }
}
