/* ─────────────────────────────────────────────────────────────────────────
   Property News Block – style.css
   Layout / slider logic is handled by per-block inline <style> in render.php
   This file contains only reusable visual / typographic styles.
   ───────────────────────────────────────────────────────────────────────── */

/* Container */
.hunt-pn-container {
    overflow: hidden;
}

/* Header */
.hunt-pn-header {
    text-align: center;
    margin-bottom: 60px;
}

.hunt-pn-viewport {
    overflow: hidden;
}

.hunt-pn-heading {
    color: var(--pn-heading);
    font-size: var(--pn-h-size-d);
    font-weight: 400;
    margin: 0;
    margin-bottom: 15px;
}

.hunt-pn-description {
    color: var(--pn-desc);
    font-size: var(--pn-desc-size-d);
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto;
}

.hunt-pn-description a {
    color: var(--pn-desc-link);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.hunt-pn-description a:hover {
    color: var(--pn-desc-link-h);
}

/* Card base */
.hunt-pn-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Image */
.hunt-pn-image-wrap {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.hunt-pn-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #eee;
    transition: transform 0.6s ease;
}

.hunt-pn-card:hover .hunt-pn-image {
    transform: scale(1.05);
}

/* Info box */
.hunt-pn-info {
    background: var(--pn-card-bg);
    padding: 30px 30px;
    width: 85%;
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

/* Byline */
.hunt-pn-byline {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--pn-m-size-d, 11px);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.hunt-pn-author {
    color: var(--pn-author);
    font-weight: 500;
}

.hunt-pn-byline-sep {
    color: #ccc;
}

.hunt-pn-date {
    color: var(--pn-date);
    font-weight: 300;
}

/* Meta */
.hunt-pn-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--pn-m-size-d);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.hunt-pn-cat {
    color: var(--pn-cat);
    font-weight: 400;
}

.hunt-pn-sep {
    color: #ccc;
}

.hunt-pn-read {
    color: var(--pn-meta);
    font-weight: 300;
}

/* Title */
.hunt-pn-title {
    color: var(--pn-title);
    font-size: var(--pn-t-size-d);
    margin: 0;
    font-weight: 400;
    line-height: 1.4;
}

/* Read more */
.hunt-pn-readmore-wrap {
    text-align: right;
    margin-top: 20px;
    background: var(--pn-readmore-bg, transparent);
    transition: background 0.3s ease;
}

.hunt-pn-readmore {
    font-size: 11px;
    letter-spacing: 1px;
    font-weight: 500;
    color: var(--pn-readmore-color);
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.hunt-pn-card:hover .hunt-pn-readmore {
    color: var(--pn-readmore-hover-color, var(--pn-desc-link, #a68d56));
}

/* Controls – defaults; per-block inline style handles show/hide */
.hunt-pn-controls {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
}

/* Dots */
.hunt-pn-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.hunt-pn-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pn-dot);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.hunt-pn-dot.is-active {
    background: var(--pn-dot-a);
    transform: scale(1.2);
}

/* Arrows */
.hunt-pn-arrow {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pn-arrow);
    transition: transform 0.2s ease, color 0.2s ease;
}

.hunt-pn-arrow svg {
    width: 24px;
    height: 24px;
}

.hunt-pn-arrow:hover {
    color: var(--pn-heading);
    transform: scale(1.1);
}

/* ── Mobile typography ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .hunt-pn-heading {
        font-size: var(--pn-h-size-m);
    }

    .hunt-pn-description {
        font-size: var(--pn-desc-size-m);
        margin-bottom: 40px;
    }

    .hunt-pn-meta {
        font-size: var(--pn-m-size-m);
    }

    .hunt-pn-title {
        font-size: var(--pn-t-size-m);
    }

    .hunt-pn-info {
        width: 90%;
        margin: -40px auto 0;
        padding: 25px 20px;
    }
}

/* ── Modal Popup Styles ────────────────────────────────────────────────── */
.hunt-pn-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.hunt-pn-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.hunt-pn-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hunt-pn-modal-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 2;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.hunt-pn-modal.is-open .hunt-pn-modal-container {
    transform: translateY(0) scale(1);
}

.hunt-pn-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.hunt-pn-modal-close:hover {
    transform: rotate(90deg) scale(1.05);
    background: #111111;
    color: #ffffff;
}

.hunt-pn-modal-close svg {
    width: 18px;
    height: 18px;
}

.hunt-pn-modal-body-wrapper {
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: #a68d56 #f0f0f0;
}

.hunt-pn-modal-body-wrapper::-webkit-scrollbar { width: 6px; }
.hunt-pn-modal-body-wrapper::-webkit-scrollbar-track { background: #f0f0f0; }
.hunt-pn-modal-body-wrapper::-webkit-scrollbar-thumb { background-color: #a68d56; border-radius: 3px; }

.hunt-pn-modal-image-hero {
    width: 100%;
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hunt-pn-modal-image-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.hunt-pn-modal-inner-content {
    padding: 40px;
    padding-top: 10px;
}

.hunt-pn-modal-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.hunt-pn-modal-cat  { color: var(--pn-cat); font-weight: 500; }
.hunt-pn-modal-sep  { color: #ccc; }
.hunt-pn-modal-read { color: var(--pn-meta); font-weight: 300; }

.hunt-pn-modal-title {
    font-family: inherit;
    font-size: 32px;
    color: var(--pn-title);
    margin: 0 0 15px 0;
    font-weight: 400;
    line-height: 1.3;
}

.hunt-pn-modal-byline {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
    color: var(--pn-meta);
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 20px;
}

.hunt-pn-modal-author     { color: var(--pn-author); font-weight: 500; }
.hunt-pn-modal-byline-sep { color: #ccc; }
.hunt-pn-modal-date       { color: var(--pn-date); }

.hunt-pn-modal-text {
    font-size: 16px;
    line-height: 1.8;
    color: #444444;
}

.hunt-pn-modal-text p   { margin-bottom: 1.5em; }
.hunt-pn-modal-text img { max-width: 100%; height: auto; border-radius: 6px; margin: 1.5em 0; }

@media (max-width: 768px) {
    .hunt-pn-modal-container  { width: 95%; max-height: 90vh; }
    .hunt-pn-modal-image-hero { height: 200px; }
    .hunt-pn-modal-inner-content { padding: 25px; }
    .hunt-pn-modal-title      { font-size: 24px; }
}