/* ============================================================
 * TGM Property Suite — Property of the Week Styles
 * ============================================================
 *
 * These styles work with standalone shortcodes placed in
 * separate WPBakery elements. No wrapper dependency.
 *
 * WPBakery handles:
 *   - Overall card shape, shadow, rounded corners (row settings)
 *   - Yellow/mint background on the info section (row bg color)
 *   - Column widths and spacing
 *
 * This CSS handles:
 *   - Image display and sizing
 *   - Price bubble shape and positioning
 *   - Spec pill grid layout
 *   - Button styling
 *   - East/West color variables
 *
 * Color Theming (from [tgm_potw_init]):
 *   .tgm-potw--east → Yellow (#F5C518)
 *   .tgm-potw--west → Mint   (#A8E6CF)
 *
 * @since 1.10.0
 * ============================================================ */


/* ----------------------------------------------------------
 *  CSS Custom Properties
 * ---------------------------------------------------------- */

.tgm-potw--east {
    --potw-bg:          #F5C518;
    --potw-accent:      #000000;
}

.tgm-potw--west {
    --potw-bg:          #A8E6CF;
    --potw-accent:      #2d5a3f;
}


/* ----------------------------------------------------------
 *  Init context div (invisible — just a class hook)
 * ---------------------------------------------------------- */

.tgm-potw-context {
    display: block;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}


/* ----------------------------------------------------------
 *  Image
 * ---------------------------------------------------------- */

.tgm-potw-image {
    position: relative;
    line-height: 0;
    overflow: hidden;
}

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


/* ----------------------------------------------------------
 *  Price Bubble
 *
 *  Elliptical shape, not pill. Heavier horizontal padding
 *  and a rounder border-radius give the oval look.
 *  Alignment controlled by wrapper class.
 * ---------------------------------------------------------- */

.tgm-potw-price-wrap {
    margin-top: -30px;
    position: relative;
    z-index: 2;
}

.tgm-potw-price-wrap.tgm-potw-price--right {
    text-align: right;
    padding-right: 24px;
}

.tgm-potw-price-wrap.tgm-potw-price--left {
    text-align: left;
    padding-left: 24px;
}

.tgm-potw-price {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 60px;           /* More round/elliptical      */
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.tgm-potw-price--dark {
    color: #ffffff;
}

.tgm-potw-price--light {
    background: #ffffff;
    color: #1a1a1a;
    border: 2px solid rgba(0,0,0,.1);
}


/* ----------------------------------------------------------
 *  Title
 * ---------------------------------------------------------- */

.tgm-potw-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 10px 0 14px;
    line-height: 1.25;
}


/* ----------------------------------------------------------
 *  Spec Pills
 * ---------------------------------------------------------- */

.tgm-potw-specs {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.tgm-potw-specs--cols-3 { grid-template-columns: repeat(3, 1fr); }
.tgm-potw-specs--cols-4 { grid-template-columns: repeat(4, 1fr); }
.tgm-potw-specs--cols-5 { grid-template-columns: repeat(5, 1fr); }

.tgm-potw-spec-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    padding: 12px 6px;
    min-height: 68px;
}

.tgm-potw-spec-value {
    display: block;
    font-size: 17px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
}

.tgm-potw-spec-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: #555555;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 3px;
    line-height: 1.3;
}


/* ----------------------------------------------------------
 *  Excerpt
 * ---------------------------------------------------------- */

.tgm-potw-excerpt {
    color: #1a1a1a;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.tgm-potw-excerpt p {
    margin: 0;
}


/* ----------------------------------------------------------
 *  Button — Brick Red (#c75b2a)
 * ---------------------------------------------------------- */

.tgm-potw-button-wrap {
    text-align: center;
    padding-bottom: 4px;
}

.tgm-potw-btn {
    display: inline-block;
    padding: 12px 40px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

/* Outline: brick red border + text, transparent bg */
.tgm-potw-btn--outline {
    background: #c75b2a;
    color: #ffffff;
    border: 2px solid #c75b2a;
}

.tgm-potw-btn--outline:hover {
    background: transparent;
    color: #c75b2a;
    border-color: #c75b2a;
}

/* Filled: brick red bg, white text */
.tgm-potw-btn--filled {
    background: #c75b2a;
    color: #ffffff;
    border: 2px solid #c75b2a;
}

.tgm-potw-btn--filled:hover {
    background: #a84a22;
    border-color: #a84a22;
    color: #ffffff;
}


/* ----------------------------------------------------------
 *  Responsive
 * ---------------------------------------------------------- */
@media (max-width: 1024px) and (min-width: 601px) {
    .tgm-potw-price {
        font-size: 30px;
        padding: 12px 28px;
    }
    .tgm-potw-price-wrap {
        margin-top: -20px;
    }
    .tgm-potw-price-wrap.tgm-potw-price--right {
        padding-right: -12px;
    }
    .tgm-potw-price-wrap.tgm-potw-price--left {
        padding-left: 20px;
    }
    .tgm-potw-title {
        font-size: 24px;
    }
    .tgm-potw-specs--cols-4,
    .tgm-potw-specs--cols-5 {
        grid-template-columns: repeat(2, 1fr);
    }
    .tgm-potw-spec-value {
        font-size: 18px;
    }
    .tgm-potw-spec-label {
        font-size: 10px;
    }
    .tgm-potw-excerpt {
        font-size: 14px;
    }
}

@media (max-width: 600px) {

    .tgm-potw-price {
        font-size: 25px;
        padding: 10px 24px;
    }

    .tgm-potw-price-wrap {
        margin-top: -12px;
    }

    .tgm-potw-price-wrap.tgm-potw-price--right {
        padding-right: 5px;
    }

    .tgm-potw-price-wrap.tgm-potw-price--left {
        padding-left: 16px;
    }

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

    .tgm-potw-specs--cols-4,
    .tgm-potw-specs--cols-5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .tgm-potw-spec-value {
        font-size: 15px;
    }

    .tgm-potw-spec-label {
        font-size: 9px;
    }

    .tgm-potw-excerpt {
        font-size: 13px;
    }
}
