:root {
    --pte-primary: #00abd6;
    --pte-text: #111111;
    --pte-muted: #666666;
    --pte-border: #E5E1DA;
    --pte-background: #F8F6F1;
    --pte-white: #FFFFFF;
    --pte-font-sans: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --pte-font-serif: 'Italiana', 'Cormorant Garamond', serif;
}

.pte-town-explorer-container {
    background-color: rgba(248, 246, 241, 0.7);
    /* bg-background-100/70 */
    border: 1px solid var(--pte-border);
    border-radius: 8px;
    padding: 24px;
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    font-family: var(--pte-font-sans);
    color: var(--pte-text);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.box_height_sem .elementor-shortcode {
    height: 100%;
}

.pte-town-explorer-container * {
    box-sizing: border-box;
}

/* Force Elementor Shortcode widgets to stretch to column height if they contain our widget */
.elementor-widget-shortcode:has(.pte-town-explorer-container),
.elementor-widget-shortcode:has(.pte-town-explorer-container)>.elementor-widget-container {
    height: 100%;
}

.pte-grid-state,
.pte-preview-state {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    flex-grow: 1;
}

.pte-grid-state.active,
.pte-preview-state.active {
    display: flex;
    flex-direction: column;
    opacity: 1;
}

.pte-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.pte-icon-wrap {
    background-color: #E0F5FA;
    /* bg-primary-100 */
    color: #067c99;
    /* text-primary-700 */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pte-icon-wrap svg {
    width: 18px;
    height: 18px;
}

.pte-header-text {
    display: flex;
    flex-direction: column;
}

.pte-header-text h2 {
    font-family: var(--pte-font-sans);
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #0f172a;
    /* text-foreground-950 */
    line-height: 1.2;
}

.pte-header-text p {
    margin: 4px 0 0 0;
    color: #64748b;
    /* text-foreground-500 */
    font-size: 12px;
    line-height: 1.4;
}

.pte-town-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.pte-town-card-btn {
    background: #FAFAFA;
    /* bg-background-50 */
    border: 1px solid var(--pte-border);
    border-radius: 6px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    font-family: var(--pte-font-sans);
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    /* text-foreground-800 */
    white-space: nowrap;
    outline: none !important;
    box-shadow: none !important;
}

.pte-town-card-btn:hover {
    border-color: #93c5fd;
    /* hover:border-primary-300 */
    background: #eff6ff !important;
    /* hover:bg-primary-50 */
    color: #0f172a !important;
    /* hover:text-foreground-950 */
    outline: none !important;
    box-shadow: none !important;
}

.pte-town-card-btn:focus,
.pte-town-card-btn:active,
.pte-town-card-btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    background: #FAFAFA !important;
    color: #1e293b !important;
}

.pte-town-card-btn svg,
.pte-town-card-btn i {
    color: #418f6c !important;
    /* user requested color */
    width: 14px;
    height: 14px;
    font-size: 14px;
    transition: color 0.2s ease;
}

.pte-town-card-btn:hover svg,
.pte-town-card-btn:hover i {
    color: #2563eb !important;
    /* group-hover:text-primary-600 */
}

.pte-preview-image-wrap {
    position: relative;
    margin: -24px -24px 24px -24px;
    height: 240px;
}

.pte-preview-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.pte-back-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #fdf9fae6;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: #111827;
    transition: background 0.2s;
    padding: 0;
}

.pte-back-btn:hover {
    background: #f3f4f6;
}

.pte-back-btn svg {
    width: 18px;
    height: 18px;
    color: #111827 !important;
}

.pte-preview-content {
    padding-bottom: 0px;
}

.pte-preview-content h2 {
    font-family: "Italiana", "Cormorant Garamond", serif;
    font-size: 28px;
    font-weight: 500;
    margin: 0 0 12px 0;
    color: #111827;
}

.pte-divider {
    width: 40px;
    height: 2px;
    background-color: var(--pte-primary);
    margin-bottom: 16px;
}

.pte-preview-content p {
    color: #374151;
    line-height: 1.6;
    font-size: 15px;
    margin-bottom: 24px;
}

.pte-explore-btn {
    display: inline-flex;
    align-items: center;
    background-color: var(--pte-primary) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: filter 0.2s;
    border: none;
    box-shadow: none;
    outline: none;
}

.pte-explore-btn:hover {
    filter: brightness(0.9);
    color: #ffffff !important;
    text-decoration: none !important;
}

@media (max-width: 600px) {
    .pte-town-grid {
        grid-template-columns: 1fr;
    }

    .pte-town-explorer-container {
        padding: 20px;
    }

    .pte-preview-image-wrap {
        margin: -20px -20px 20px -20px;
    }
}