/* ==========================================
   1. REGIONS DIRECTORY (page-regions.php)
   ========================================== */
.regions-page-wrapper {
    background-color: #fcfcfc;
    padding-top: clamp(140px, 15vw, 180px);
    padding-bottom: 120px;
    min-height: 100vh;
}

/* --- HERO & SEARCH --- */
.regions-hero {
    max-width: 800px;
    margin: 0 auto 80px auto;
    text-align: center;
    padding: 0 20px;
}

.regions-hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    color: #1a1a1a;
    margin: 0 0 15px 0;
    line-height: 1;
    letter-spacing: -0.03em;
}

.regions-hero p {
    font-family: var(--font-serif);
    font-size: 20px;
    color: #666666;
    font-style: italic;
    margin-bottom: 40px;
}

.region-search-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.region-search-wrapper svg {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999999;
}

.region-search-input {
    width: 100%;
    padding: 20px 20px 20px 55px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: #1a1a1a;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 40px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.region-search-input:focus {
    border-color: #007769;
    box-shadow: 0 0 0 1px #007769;
}

/* --- THE GRID --- */
.regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: var(--container-width, 1440px);
    margin: 0 auto;
    padding: 0 var(--container-padding, 40px);
}

.region-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 450px;
    background: #1a1a1a;
    border-radius: 2px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.4s ease;
}

.region-card:hover {
    transform: translateY(-5px);
}

.region-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.region-card:hover .region-bg {
    transform: scale(1.05);
}

.no-bg-pattern {
    background: linear-gradient(135deg, #2a2a2a 0%, #111111 100%);
}

.region-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.region-card:hover::after {
    opacity: 0.8;
}

.region-content {
    position: relative;
    z-index: 2;
    padding: 40px;
}

.region-name {
    font-family: var(--font-serif);
    font-size: 36px;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 1.1;
}

.region-count {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-sans);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}

.region-card:hover .region-count {
    color: #ffffff;
}

#no-results {
    display: none;
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
    font-family: var(--font-serif);
    font-size: 24px;
    color: #888888;
}

@media (max-width: 768px) {
    .regions-grid { grid-template-columns: 1fr; gap: 20px; }
    .region-card { height: 350px; }
}


/* ==========================================
   2. INDIVIDUAL DESTINATION PAGE (taxonomy-property_location.php)
   ========================================== */
.location-hero {
    position: relative;
    height: 55vh;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #111111;
    margin-top: calc(-1 * var(--header-height, 100px)); /* Pulls under transparent header */
    padding-top: var(--header-height, 100px);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5); 
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 800px;
    padding: 0 20px;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin-bottom: 15px;
    display: block;
    color: rgba(255, 255, 255, 0.8);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 56px;
    font-weight: 400;
    margin: 0 0 20px 0;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.hero-description {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto 20px auto;
}

.hero-meta-divider {
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 auto 15px auto;
}

.hero-count {
    font-family: var(--font-sans);
    font-size: 13px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.archive-container {
    max-width: 1240px;
    margin: 60px auto 100px;
    padding: 0 20px;
}

.archive-toolbar {
    margin-bottom: 40px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 15px;
}

.toolbar-label {
    font-family: var(--font-serif);
    font-size: 24px;
    color: #1a1a1a;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px 30px;
}

@media (max-width: 768px) {
    .hero-title { font-size: 40px; }
    .archive-grid { grid-template-columns: 1fr; }
}