/**
 * TGM Property Suite — Frontend Styles
 *
 * Styles for public-facing property displays:
 * - Property card grid ([tgm_listings])
 * - Featured hero spotlight ([tgm_featured style="hero"])
 * - Badges (status, open house, price reduced, featured)
 * - Responsive breakpoints
 *
 * @copyright 2026 Two Guys and a Mouse LLC. All rights reserved.
 * @license   Proprietary — unauthorized copying, modification, or distribution is strictly prohibited.
 * @package TGM_Property_Suite
 * @version 1.0.0
 */

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */

:root {
    --tgm-card-radius: 8px;
    --tgm-card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --tgm-card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    --tgm-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --tgm-color-text: #1a1a1a;
    --tgm-color-text-light: #666;
    --tgm-color-accent: #c75b2a;  /* Desert terracotta — bijou accent */
    --tgm-color-accent-hover: #a94a1f;
    --tgm-color-bg: #ffffff;
    --tgm-color-bg-light: #f8f8f8;
    --tgm-color-border: #e8e8e8;
}


/* ============================================================
   PROPERTY CARD GRID
   ============================================================ */

.tgm-listings-grid {
    display: grid;
    gap: 24px;
    padding: 0;
    margin: 0;
    list-style: none;
}

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

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

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


/* ============================================================
   PROPERTY CARD
   ============================================================ */

.tgm-property-card {
    background: var(--tgm-color-bg);
    border-radius: var(--tgm-card-radius);
    overflow: hidden;
    box-shadow: var(--tgm-card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tgm-property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--tgm-card-shadow-hover);
}

.tgm-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.tgm-card-link:hover,
.tgm-card-link:focus {
    text-decoration: none;
    color: inherit;
}


/* ============================================================
   CARD — IMAGE
   ============================================================ */

.tgm-card-image {
    position: relative;
    width: 100%;
    padding-top: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
    background: var(--tgm-color-bg-light);
}

.tgm-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tgm-property-card:hover .tgm-card-image img {
    transform: scale(1.03);
}

.tgm-card-no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tgm-color-bg-light);
    color: #999;
    font-size: 14px;
}


/* ============================================================
   CARD — BADGES
   ============================================================ */

.tgm-card-badges {
    position: absolute;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 2;
}

/* Badge position variants — controlled from Settings */
.tgm-badges-top-left {
    top: 10px;
    left: 10px;
}
.tgm-badges-top-right {
    top: 10px;
    right: 10px;
    justify-content: flex-end;
}
.tgm-badges-bottom-left {
    bottom: 10px;
    left: 10px;
}
.tgm-badges-bottom-right {
    bottom: 10px;
    right: 10px;
    justify-content: flex-end;
}

.tgm-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.3;
}

.tgm-badge-status {
    /* Color set inline via style attribute */
}

.tgm-badge-open-house {
    background: #17a2b8;
}

.tgm-badge-price-reduced {
    background: #e83e8c;
}

.tgm-badge-featured {
    background: var(--tgm-color-accent);
}

.tgm-badge-custom {
    /* Color set inline via style attribute */
}

/* ── SALE badge — special promotional treatment ────────── */
.tgm-badge-sale {
    background: linear-gradient(135deg, #007bff 0%, #0056d2 100%);
    color: #fff;
    font-size: 13px;
    padding: 5px 14px;
    border-radius: 4px;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.4);
    animation: tgm-sale-pulse 2s ease-in-out infinite;
}

@keyframes tgm-sale-pulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(0, 123, 255, 0.4); }
    50%      { box-shadow: 0 2px 16px rgba(0, 123, 255, 0.7); }
}

/* ── Unused: legacy .tgm-card-type (removed in v1.14.1) ─ */
.tgm-card-type {
    display: none;
}


/* ============================================================
   CARD — CONTENT
   ============================================================ */

.tgm-card-content {
    padding: 16px 18px 18px;
}

.tgm-card-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--tgm-color-text);
    margin-bottom: 4px;
    font-family: var(--tgm-font-family);
}

.tgm-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--tgm-color-text);
    margin: 0 0 6px 0;
    padding: 0;
    line-height: 1.3;
}

.tgm-card-specs {
    font-size: 13px;
    color: var(--tgm-color-text-light);
    margin-bottom: 4px;
}

.tgm-card-community {
    font-size: 12px;
    color: var(--tgm-color-text-light);
    font-weight: 500;
}


/* ============================================================
   FEATURED HERO (single spotlight)
   ============================================================ */

.tgm-featured-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    background: var(--tgm-color-bg);
    border-radius: var(--tgm-card-radius);
    overflow: hidden;
    box-shadow: var(--tgm-card-shadow);
}

.tgm-hero-image {
    position: relative;
    min-height: 400px;
}

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

.tgm-hero-image .tgm-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 13px;
    padding: 6px 14px;
}

.tgm-hero-content {
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tgm-hero-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--tgm-color-text);
    margin-bottom: 8px;
    font-family: var(--tgm-font-family);
}

.tgm-hero-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--tgm-color-text);
    margin: 0 0 8px 0;
    padding: 0;
    line-height: 1.2;
}

.tgm-hero-community {
    font-size: 14px;
    color: var(--tgm-color-text-light);
    margin-bottom: 16px;
}

.tgm-hero-specs {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.tgm-hero-specs span {
    font-size: 14px;
    color: var(--tgm-color-text-light);
    font-weight: 500;
}

.tgm-hero-excerpt {
    font-size: 14px;
    color: var(--tgm-color-text-light);
    line-height: 1.6;
    margin-bottom: 24px;
}

.tgm-hero-button {
    display: inline-block;
    padding: 12px 28px;
    background: var(--tgm-color-accent);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: background 0.2s ease;
    align-self: flex-start;
}

.tgm-hero-button:hover {
    background: var(--tgm-color-accent-hover);
    color: #fff;
    text-decoration: none;
}


/* ============================================================
   FEATURED CARD — Accent border
   ============================================================ */

.tgm-featured-card {
    border-top: 3px solid var(--tgm-color-accent);
}


/* ============================================================
   NO RESULTS MESSAGE
   ============================================================ */

.tgm-no-results {
    padding: 40px 20px;
    text-align: center;
    color: var(--tgm-color-text-light);
    font-size: 15px;
}


/* ============================================================
   PAGINATION
   ============================================================ */

.tgm-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 32px;
    padding: 16px 0;
}

.tgm-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}

.tgm-page-link:hover {
    background: #f0f0f0;
    border-color: #bbb;
    color: #111;
    text-decoration: none;
}

.tgm-page-current {
    background: var(--tgm-color-accent, #265962);
    border-color: var(--tgm-color-accent, #265962);
    color: #fff;
    font-weight: 700;
    cursor: default;
}

.tgm-page-current:hover {
    background: var(--tgm-color-accent, #265962);
    border-color: var(--tgm-color-accent, #265962);
    color: #fff;
}

.tgm-page-home,
.tgm-page-prev,
.tgm-page-next {
    font-size: 13px;
    letter-spacing: 0.3px;
}

.tgm-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 38px;
    color: #999;
    font-size: 16px;
}

.tgm-page-info {
    margin-left: 12px;
    font-size: 13px;
    color: #888;
}

@media (max-width: 480px) {
    .tgm-pagination {
        gap: 4px;
    }
    .tgm-page-link {
        min-width: 34px;
        height: 34px;
        padding: 0 8px;
        font-size: 13px;
    }
    .tgm-page-info {
        display: block;
        width: 100%;
        text-align: center;
        margin: 8px 0 0 0;
    }
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    .tgm-columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .tgm-columns-3,
    .tgm-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .tgm-listings-grid {
        gap: 16px;
    }

    .tgm-featured-hero {
        grid-template-columns: 1fr;
    }

    .tgm-hero-image {
        min-height: 250px;
    }

    .tgm-hero-content {
        padding: 24px 20px;
    }

    .tgm-hero-price {
        font-size: 26px;
    }

    .tgm-hero-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .tgm-columns-2,
    .tgm-columns-3,
    .tgm-columns-4 {
        grid-template-columns: 1fr;
    }

    .tgm-card-content {
        padding: 14px 16px 16px;
    }

    .tgm-card-price {
        font-size: 20px;
    }
}


/* ============================================================
   TESTIMONIALS — Frontend Styles (Section 7D)
   ============================================================ */

/* --- Shared card styles --- */

.tgm-testimonials {
    padding: 0;
    margin: 0;
}

.tgm-testimonial-card {
    background: var(--tgm-color-bg);
    border: 1px solid var(--tgm-color-border);
    border-radius: var(--tgm-card-radius);
    padding: 24px;
    box-shadow: var(--tgm-card-shadow);
    transition: box-shadow 0.2s ease;
}

.tgm-testimonial-card:hover {
    box-shadow: var(--tgm-card-shadow-hover);
}

.tgm-testimonial-card.tgm-testimonial-featured {
    border-color: var(--tgm-color-accent);
    border-width: 2px;
}

.tgm-testimonial-stars {
    margin-bottom: 12px;
    font-size: 18px;
    letter-spacing: 2px;
}

.tgm-star-filled {
    color: #f39c12;
}

.tgm-star-empty {
    color: #ddd;
}

.tgm-testimonial-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--tgm-color-text);
    margin-bottom: 16px;
}

.tgm-testimonial-text p:last-child {
    margin-bottom: 0;
}

blockquote.tgm-testimonial-text {
    font-size: 20px;
    font-style: italic;
    line-height: 1.5;
    border-left: 4px solid var(--tgm-color-accent);
    padding-left: 20px;
    margin: 0 0 16px;
}

.tgm-testimonial-attribution {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    font-size: 14px;
}

.tgm-testimonial-name {
    font-weight: 700;
    color: var(--tgm-color-text);
}

.tgm-testimonial-location {
    color: var(--tgm-color-text-light);
}

.tgm-testimonial-location::before {
    content: '— ';
}


/* --- Heart button --- */

.tgm-testimonial-heart-wrap {
    margin-top: 12px;
    text-align: right;
}

.tgm-heart-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 18px;
    color: #ccc;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease, transform 0.15s ease;
    border-radius: 20px;
}

.tgm-heart-btn:hover {
    color: #e74c3c;
    transform: scale(1.1);
}

.tgm-heart-btn.tgm-hearted {
    color: #e74c3c;
}

.tgm-heart-btn.tgm-hearted .tgm-heart-icon {
    animation: tgmHeartPop 0.3s ease;
}

@keyframes tgmHeartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.tgm-heart-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--tgm-color-text-light);
}


/* --- Grid layout --- */

.tgm-testimonials-grid {
    display: grid;
    gap: 24px;
}

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

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


/* --- Slider layout --- */

.tgm-testimonials-slider {
    max-width: 700px;
    margin: 0 auto;
}

.tgm-testimonials-slider .tgm-testimonial-card {
    text-align: center;
}

.tgm-testimonials-slider .tgm-testimonial-attribution {
    justify-content: center;
}

.tgm-testimonials-slider .tgm-testimonial-heart-wrap {
    text-align: center;
}


/* --- Featured layout --- */

.tgm-testimonials-featured {
    max-width: 800px;
    margin: 0 auto;
}

.tgm-testimonials-featured .tgm-testimonial-card {
    text-align: center;
    padding: 10px 40px;
    border: none;
    background: var(--tgm-color-bg-light);
}

.tgm-testimonials-featured .tgm-testimonial-stars {
    font-size: 24px;
}

.tgm-testimonials-featured .tgm-testimonial-attribution {
    justify-content: center;
    font-size: 16px;
}


/* --- Wall / masonry layout --- */

.tgm-testimonials-wall {
    column-gap: 20px;
}

.tgm-testimonials-wall.tgm-testimonials-cols-2 {
    column-count: 2;
    display: block;
    grid-template-columns: unset;
}

.tgm-testimonials-wall.tgm-testimonials-cols-3 {
    column-count: 3;
    display: block;
    grid-template-columns: unset;
}

.tgm-testimonials-wall .tgm-testimonial-card {
    break-inside: avoid;
    margin-bottom: 20px;
}


/* --- Empty state --- */

.tgm-testimonials-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--tgm-color-text-light);
    font-size: 16px;
}


/* --- Divider between form and reviews --- */

.tgm-testimonials-divider {
    height: 1px;
    background: var(--tgm-color-border);
    margin: 40px 0;
}


/* ============================================================
   TESTIMONIAL SUBMISSION FORM (Section 7D)
   ============================================================ */

.tgm-testimonial-form-wrap {
    max-width: 700px;
    margin: 0 auto;
    padding: 32px;
    background: var(--tgm-color-bg);
    border: 1px solid var(--tgm-color-border);
    border-radius: var(--tgm-card-radius);
    box-shadow: var(--tgm-card-shadow);
}

.tgm-testimonial-form-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--tgm-color-text);
}

.tgm-testimonial-form-subtitle {
    margin: 0 0 24px;
    color: var(--tgm-color-text-light);
    font-size: 15px;
}

.tgm-tform-row {
    margin-bottom: 0;
}

.tgm-tform-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.tgm-tform-field {
    margin-bottom: 16px;
}

.tgm-tform-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--tgm-color-text);
}

.tgm-tform-field input[type="text"],
.tgm-tform-field select,
.tgm-tform-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--tgm-color-border);
    border-radius: 6px;
    font-size: 15px;
    font-family: var(--tgm-font-family);
    color: var(--tgm-color-text);
    background: #fff;
    transition: border-color 0.15s ease;
    box-sizing: border-box;
}

.tgm-tform-field input:focus,
.tgm-tform-field select:focus,
.tgm-tform-field textarea:focus {
    outline: none;
    border-color: var(--tgm-color-accent);
    box-shadow: 0 0 0 2px rgba(199, 91, 42, 0.15);
}

.tgm-tform-field textarea {
    resize: vertical;
    min-height: 100px;
}


/* Star rating selector */

.tgm-tform-stars {
    display: flex;
    gap: 4px;
}

.tgm-tform-star {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 28px;
    color: #ddd;
    padding: 2px;
    line-height: 1;
    transition: color 0.15s ease, transform 0.1s ease;
}

.tgm-tform-star-active {
    color: #f39c12;
}

.tgm-tform-star-hover {
    color: #f5b041;
    transform: scale(1.1);
}


/* Submit button */

.tgm-tform-submit {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: var(--tgm-color-accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--tgm-font-family);
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 8px;
}

.tgm-tform-submit:hover {
    background: var(--tgm-color-accent-hover);
}

.tgm-tform-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}


/* Status messages */

.tgm-tform-status {
    margin-top: 12px;
    padding: 0;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.tgm-tform-status-success {
    padding: 12px;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tgm-tform-status-error {
    padding: 12px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* ============================================================
   TESTIMONIALS — Responsive
   ============================================================ */

@media (max-width: 768px) {
    .tgm-testimonials-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .tgm-testimonials-wall.tgm-testimonials-cols-3 {
        column-count: 2;
    }

    .tgm-tform-row-2col {
        grid-template-columns: 1fr;
    }

    .tgm-testimonial-form-wrap {
        padding: 24px 20px;
    }

    blockquote.tgm-testimonial-text {
        font-size: 14px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .tgm-testimonials-cols-2,
    .tgm-testimonials-cols-3 {
        grid-template-columns: 1fr;
    }

    .tgm-testimonials-wall.tgm-testimonials-cols-2,
    .tgm-testimonials-wall.tgm-testimonials-cols-3 {
        column-count: 1;
    }

    .tgm-testimonial-card {
        padding: 18px;
    }

    .tgm-testimonials-featured .tgm-testimonial-card {
        padding: 24px 18px;
    }
}
/* ============================================================
 *  Contact Card (for footer and non-property pages)
 * ============================================================ */
.tgm-contact-card {
    background: var(--tgm-bg, #ffffff);
    border: 1px solid var(--tgm-border, #e0e0e0);
    border-radius: var(--tgm-radius, 8px);
    padding: 28px 32px;
    box-shadow: var(--tgm-shadow, 0 2px 8px rgba(0, 0, 0, 0.08));
}

.tgm-contact-card .tgm-section-title {
    margin-bottom: 16px;
}

.tgm-contact-row {
    padding: 10px 0;
    font-size: 17px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tgm-contact-row + .tgm-contact-row {
    border-top: 1px solid var(--tgm-border, #e0e0e0);
}

.tgm-contact-icon {
    flex-shrink: 0;
    font-size: 20px;
}

.tgm-contact-row a {
    color: var(--tgm-accent, #c75b2a);
    text-decoration: none;
    font-weight: 600;
}

.tgm-contact-row a:hover {
    text-decoration: underline;
}


/* ============================================================
   UNIFIED CONTACT FORM (Section 11)
   Used by [tgm_contact_form] and [tgm_contact_button] modal.
   Same visual style as the PVA contact modal.
   ============================================================ */

/* --- CSS Variables (standalone — not inside PVA scope) --- */
.tgm-contact-unified,
.tgm-contact-modal-overlay {
    --tgm-accent: #c75b2a;
    --tgm-accent-hover: #a94a1f;
    --tgm-accent-light: #fdf0ea;
    --tgm-text: #1a1a1a;
    --tgm-text-light: #555;
    --tgm-text-lighter: #888;
    --tgm-bg: #ffffff;
    --tgm-bg-light: #f8f8f8;
    --tgm-border: #e0e0e0;
    --tgm-radius: 8px;
    --tgm-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --tgm-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --tgm-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* --- Modal Overlay (for [tgm_contact_button]) --- */
.tgm-contact-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.tgm-contact-modal-overlay.tgm-active {
    display: flex;
}

.tgm-contact-modal-overlay .tgm-modal {
    background: var(--tgm-bg, #ffffff);
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--tgm-shadow-lg, 0 8px 32px rgba(0, 0, 0, 0.12));
    animation: tgmContactModalIn 0.2s ease;
}

@keyframes tgmContactModalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.tgm-contact-modal-overlay .tgm-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none !important;
    background: transparent !important;
    border-radius: 0;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--tgm-text-lighter, #888);
    transition: color 0.2s;
    z-index: 2;
    padding: 0;
    line-height: 1;
    box-shadow: none !important;
    outline: none;
}

.tgm-contact-modal-overlay .tgm-modal-close:hover {
    color: var(--tgm-text, #1a1a1a);
    background: transparent !important;
}

.tgm-contact-modal-overlay .tgm-modal-content {
    padding: 24px 28px;
}

/* --- Contact Button [tgm_contact_button] --- */
.tgm-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--tgm-font, inherit);
    border: 2px solid var(--tgm-accent, #c75b2a);
}

.tgm-contact-btn-filled {
    background: var(--tgm-accent, #c75b2a);
    color: #fff;
}

.tgm-contact-btn-filled:hover {
    background: var(--tgm-accent-hover, #a94a1f);
    border-color: var(--tgm-accent-hover, #a94a1f);
}

.tgm-contact-btn-outline {
    background: transparent;
    color: var(--tgm-accent, #c75b2a);
}

.tgm-contact-btn-outline:hover {
    background: var(--tgm-accent, #c75b2a);
    color: #fff;
}

/* --- Contact Form Shared Styles --- */
.tgm-contact-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 2px;
    color: var(--tgm-text, #1a1a1a);
}

.tgm-contact-property-line {
    font-size: 14px;
    color: var(--tgm-text-light, #555);
    margin: 0 0 12px;
}

.tgm-contact-subtitle {
    font-size: 15px;
    color: var(--tgm-text-light, #555);
    margin: 0 0 20px;
}

.tgm-contact-quick {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tgm-contact-quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
    flex: 1;
    justify-content: center;
    min-width: 120px;
}

.tgm-contact-phone-btn {
    background: #78C9B0;
    color: #fff;
}
.tgm-contact-phone-btn:hover {
    background: #5fb89c;
    color: #fff;
}

.tgm-contact-text-btn {
    background: #F26F7A;
    color: #fff;
}
.tgm-contact-text-btn:hover {
    background: #e05560;
    color: #fff;
}

.tgm-contact-email-btn {
    background: var(--tgm-bg-light, #f8f8f8);
    color: var(--tgm-text, #1a1a1a);
    border: 1.5px solid var(--tgm-border, #e0e0e0);
}
.tgm-contact-email-btn:hover {
    border-color: var(--tgm-accent, #c75b2a);
    color: var(--tgm-accent, #c75b2a);
}

.tgm-contact-divider {
    text-align: center;
    margin: 16px 0;
    position: relative;
}

.tgm-contact-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--tgm-border, #e0e0e0);
}

.tgm-contact-divider span {
    position: relative;
    background: var(--tgm-bg, #ffffff);
    padding: 0 16px;
    font-size: 13px;
    color: var(--tgm-text-lighter, #888);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form fields */
.tgm-contact-form {
    position: relative;
}

.tgm-form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tgm-form-row-3col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.tgm-form-field {
    margin-bottom: 10px;
}

.tgm-form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--tgm-text, #1a1a1a);
}

.tgm-form-field input,
.tgm-form-field textarea,
.tgm-form-field select {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--tgm-border, #e0e0e0);
    border-radius: 6px;
    font-size: 15px;
    font-family: var(--tgm-font, inherit);
    transition: border-color 0.15s;
    background: var(--tgm-bg, #ffffff);
    color: var(--tgm-text, #1a1a1a);
    box-sizing: border-box;
}

.tgm-form-field input:focus,
.tgm-form-field textarea:focus,
.tgm-form-field select:focus {
    outline: none;
    border-color: var(--tgm-accent, #c75b2a);
    box-shadow: 0 0 0 3px var(--tgm-accent-light, #fdf0ea);
}

.tgm-form-field textarea {
    resize: vertical;
    min-height: 60px;
}

.tgm-form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.tgm-form-submit {
    width: 100%;
    padding: 12px;
    background: var(--tgm-accent, #c75b2a);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    font-family: var(--tgm-font, inherit);
}

.tgm-form-submit:hover {
    background: var(--tgm-accent-hover, #a94a1f);
}

.tgm-form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.tgm-form-status {
    margin-top: 12px;
    padding: 0;
    border-radius: 6px;
    font-size: 15px;
    text-align: center;
    transition: all 0.2s;
}

.tgm-form-status-success {
    padding: 12px;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tgm-form-status-error {
    padding: 12px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* --- Inline form context tweaks --- */
.tgm-contact-inline {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .tgm-contact-modal-overlay .tgm-modal-content {
        padding: 20px 16px;
    }

    .tgm-form-row-2col,
    .tgm-form-row-3col {
        grid-template-columns: 1fr;
    }

    .tgm-contact-quick {
        flex-direction: column;
    }

    .tgm-contact-quick-btn {
        min-width: auto;
    }
}


/* ============================================================
   NEWSLETTER SIGNUP [tgm_newsletter_signup]
   ============================================================ */

.tgm-newsletter-signup {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.tgm-newsletter-heading {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px;
}

.tgm-newsletter-desc {
    font-size: 14px;
    margin: 0 0 16px;
}

/* Dark style — dark text on light backgrounds (default) */
.tgm-newsletter-dark .tgm-newsletter-heading {
    color: #1a1a1a;
}
.tgm-newsletter-dark .tgm-newsletter-desc {
    color: #555;
}
.tgm-newsletter-dark .tgm-newsletter-status {
    color: #555;
}

/* Light style — light text on dark backgrounds */
.tgm-newsletter-light .tgm-newsletter-heading {
    color: #ffffff;
}
.tgm-newsletter-light .tgm-newsletter-desc {
    color: rgba(255, 255, 255, 0.85);
}
.tgm-newsletter-light .tgm-newsletter-status {
    color: rgba(255, 255, 255, 0.85);
}
.tgm-newsletter-light .tgm-newsletter-success {
    color: #a8e6cf;
}
.tgm-newsletter-light .tgm-newsletter-error {
    color: #ffb3b3;
}

.tgm-newsletter-row {
    display: flex;
    gap: 8px;
}

.tgm-newsletter-input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid var(--tgm-border, #e0e0e0);
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: var(--tgm-text, #1a1a1a);
    box-sizing: border-box;
}

.tgm-newsletter-input:focus {
    outline: none;
    border-color: var(--tgm-accent, #c75b2a);
    box-shadow: 0 0 0 3px var(--tgm-accent-light, #fdf0ea);
}

.tgm-newsletter-btn {
    padding: 10px 24px;
    background: var(--tgm-accent, #c75b2a);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
    white-space: nowrap;
}

.tgm-newsletter-btn:hover {
    background: var(--tgm-accent-hover, #a94a1f);
}

.tgm-newsletter-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.tgm-newsletter-status {
    margin-top: 8px;
    font-size: 14px;
    min-height: 20px;
}

.tgm-newsletter-success {
    color: #155724;
}

.tgm-newsletter-error {
    color: #721c24;
}

@media (max-width: 480px) {
    .tgm-newsletter-row {
        flex-direction: column;
    }
}


/* ============================================================
   AMENITIES GRID [tgm_amenities]
   ============================================================ */

.tgm-amenities-grid-wrap {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.tgm-amenities-heading {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 24px;
}

.tgm-amenities-grid {
    display: grid;
    gap: 16px;
}

.tgm-amenities-cols-2 { grid-template-columns: repeat(2, 1fr); }
.tgm-amenities-cols-3 { grid-template-columns: repeat(3, 1fr); }
.tgm-amenities-cols-4 { grid-template-columns: repeat(4, 1fr); }

.tgm-amenity-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 8px;
    transition: background 0.15s;
}

.tgm-amenity-icon {
    flex-shrink: 0;
    line-height: 0;
}

.tgm-amenity-icon .tgm-icon {
    display: inline-block;
    flex-shrink: 0;
    vertical-align: middle;
}

.tgm-amenity-icon .tgm-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.tgm-amenity-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.tgm-amenity-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.tgm-amenity-subtitle {
    font-size: 13px;
    line-height: 1.4;
}

/* Dark style — dark text on light backgrounds (default) */
.tgm-amenities-dark .tgm-amenities-heading {
    color: #1a1a1a;
}
.tgm-amenities-dark .tgm-amenity-card {
    background: rgba(0, 0, 0, 0.03);
}
.tgm-amenities-dark .tgm-amenity-card:hover {
    background: rgba(0, 0, 0, 0.06);
}
.tgm-amenities-dark .tgm-amenity-title {
    color: #1a1a1a;
}
.tgm-amenities-dark .tgm-amenity-subtitle {
    color: #666;
}
.tgm-amenities-dark .tgm-amenity-icon {
    color: var(--tgm-icon-color, #265962);
}

/* Light style — light text on dark backgrounds */
.tgm-amenities-light .tgm-amenities-heading {
    color: #ffffff;
}
.tgm-amenities-light .tgm-amenity-card {
    background: rgba(255, 255, 255, 0.08);
}
.tgm-amenities-light .tgm-amenity-card:hover {
    background: rgba(255, 255, 255, 0.14);
}
.tgm-amenities-light .tgm-amenity-title {
    color: #ffffff;
}
.tgm-amenities-light .tgm-amenity-subtitle {
    color: rgba(255, 255, 255, 0.75);
}
.tgm-amenities-light .tgm-amenity-icon {
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive */
@media (max-width: 768px) {
    .tgm-amenities-cols-3,
    .tgm-amenities-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .tgm-amenities-cols-2,
    .tgm-amenities-cols-3,
    .tgm-amenities-cols-4 {
        grid-template-columns: 1fr;
    }
}
