/* Enhanced Locations Hub Styles */
.locations-hero {
    background: linear-gradient(135deg, #24362E 0%, #24362E 100%);
    color: white;
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.locations-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/homepage-hero.jpg') center/cover;
    opacity: 0.2;
    z-index: 1;
}

.locations-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.locations-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.locations-hero p {
    font-size: 1.25rem;
    margin-bottom: 0;
    opacity: 0.95;
}

.locations-stats {
    background: white;
    padding: 40px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #24362E;
    display: block;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

.locations-grid-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.locations-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title-large {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.location-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.location-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.location-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.location-content {
    padding: 25px;
}

.location-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cottage-count {
    background: #436958;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

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

.location-link:hover {
    text-decoration: none;
    color: inherit;
}

.view-button {
    background: #ff5517; /* Bright orange - kept as requested */
    --background: linear-gradient(45deg, #24362E, #24362E);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.view-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(36, 54, 46, 0.4);
    color: white;
    text-decoration: none;
}

.no-locations {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

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

.placeholder-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    animation: pulse 1.5s ease-in-out infinite alternate;
}

.placeholder-image {
    width: 100%;
    height: 250px;
    background: #e9ecef;
}

.placeholder-content {
    padding: 25px;
}

.placeholder-text {
    height: 20px;
    background: #e9ecef;
    border-radius: 4px;
    margin-bottom: 15px;
}

.placeholder-text.short {
    width: 60%;
}

@keyframes pulse {
    from { opacity: 1; }
    to { opacity: 0.7; }
}

@media (max-width: 768px) {
    .locations-hero h1 {
        font-size: 2.5rem;
    }
    
    .locations-hero p {
        font-size: 1.1rem;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}
/* Card blurb, search + sort (06/10/2026) */
.location-blurb{margin:4px 0 0;color:#5b6763;font-size:.95rem;line-height:1.5}
.location-content{display:flex;flex-direction:column}
.location-content .view-button{align-self:flex-start}
.location-name span:first-child{min-width:0}
.location-name .cottage-count{flex:0 0 auto;margin-left:10px}
.loc-tools{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;max-width:900px;margin:0 auto 10px}
.loc-search{flex:1 1 260px;display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #dfe5e2;border-radius:999px;padding:0 18px;color:#5e7a70;margin:0}
.loc-search:focus-within{border-color:#436958;box-shadow:0 0 0 3px rgba(67,105,88,.15)}
.loc-search input{flex:1;border:0;outline:0;padding:13px 0;font:inherit;font-size:1rem;background:transparent;min-width:0}
.loc-sort{display:flex;background:#eef3f0;border-radius:999px;padding:4px}
.loc-sort button{border:0;background:transparent;padding:9px 16px;border-radius:999px;font:inherit;font-size:.9rem;font-weight:500;color:#436958;cursor:pointer}
.loc-sort button.on{background:#436958;color:#fff}
.loc-none{grid-column:1/-1;text-align:center;color:#666;padding:30px 0}
.location-card[hidden]{display:none!important}
@media (max-width:768px){
 .locations-grid{grid-template-columns:1fr;gap:20px}
 .location-image{height:200px}
 .location-content{padding:18px 20px 22px}
 .location-name{font-size:1.25rem}
 .view-button{padding:10px 20px;margin-top:12px}
 .loc-sort{width:100%}
 .loc-sort button{flex:1}
}

/* Line up buttons across a row */
.location-card{display:flex;flex-direction:column}
.location-card .location-link{display:flex;flex-direction:column;flex:1}
.location-card .location-content{flex:1}
.location-content .view-button{margin-top:auto}
.location-blurb{margin-bottom:18px}

/* No layout shift: fixed photo box with a shimmering skeleton until the image arrives */
.location-link{position:relative}
.location-card .location-link::before{content:'';display:block;aspect-ratio:350/250;width:100%}
.location-card .location-image{position:absolute;top:0;left:0;width:100%;height:auto;aspect-ratio:350/250;opacity:0;transition:opacity .35s ease,transform .3s ease}
.location-card .location-image.is-loaded{opacity:1}
.location-card .location-link::before{background:linear-gradient(90deg,#eef1ef 25%,#f7f9f8 50%,#eef1ef 75%);background-size:200% 100%;animation:locShimmer 1.4s linear infinite}
@keyframes locShimmer{from{background-position:200% 0}to{background-position:-200% 0}}
@media (max-width:768px){.location-card .location-image{height:auto}}
@media (prefers-reduced-motion:reduce){.location-card .location-link::before{animation:none}}
