/* ═══════════════════════════════════════════════════════════
   Villa Megna — Template Styles
   CPT Camera (archive + single), 404, Contatti
   ═══════════════════════════════════════════════════════════ */

/* ── Archive camere: griglia ────────────────────────────── */

.vm-camere-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--vm-space-8);
    padding: var(--vm-space-4) 0 var(--vm-space-8);
}

/* ── Card camera ────────────────────────────────────────── */

.vm-camera-card {
    background: var(--vm-white);
    border-radius: var(--vm-radius-lg);
    overflow: hidden;
    box-shadow: var(--vm-shadow-md);
    transition:
        box-shadow  var(--vm-transition-base),
        transform   var(--vm-transition-base);
    display: flex;
    flex-direction: column;
}
.vm-camera-card:hover {
    box-shadow: var(--vm-shadow-xl);
    transform: translateY(-6px);
}

.vm-camera-card__image {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
}

.vm-camera-card__body {
    padding: var(--vm-space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vm-camera-card__name {
    font-family: var(--vm-font-heading);
    font-size: var(--vm-text-xl);
    color: var(--vm-navy);
    margin-bottom: var(--vm-space-3);
    line-height: 1.3;
}

.vm-camera-card__name a {
    color: inherit;
    text-decoration: none;
}
.vm-camera-card__name a:hover {
    color: var(--vm-gold-dark);
}

.vm-camera-card__excerpt {
    font-size: var(--vm-text-sm);
    color: var(--vm-text-muted);
    line-height: 1.6;
    margin-bottom: var(--vm-space-4);
    flex: 1;
}

.vm-camera-card__features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--vm-space-3);
    margin-bottom: var(--vm-space-4);
}

.vm-camera-card__feature {
    font-size: var(--vm-text-xs);
    color: var(--vm-text-muted);
    display: flex;
    align-items: center;
    gap: var(--vm-space-1);
    font-family: var(--vm-font-ui);
}

.vm-camera-card__price {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--vm-space-4);
    border-top: 1px solid var(--vm-gray-200);
    gap: var(--vm-space-3);
}

.vm-camera-card__price-block {
    line-height: 1.2;
}

.vm-camera-card__price-label {
    display: block;
    font-size: var(--vm-text-xs);
    color: var(--vm-text-muted);
    font-family: var(--vm-font-ui);
}

.vm-camera-card__price-amount {
    font-family: var(--vm-font-heading);
    font-size: var(--vm-text-2xl);
    color: var(--vm-gold-dark);
    font-weight: 700;
}

/* ── Single camera ──────────────────────────────────────── */

.vm-single-camera {
    padding-bottom: var(--vm-space-20);
}

.vm-single-camera__hero {
    width: 100%;
    aspect-ratio: 16 / 6;
    object-fit: cover;
    display: block;
}

.vm-single-camera__content {
    max-width: var(--vm-container-max);
    margin: 0 auto;
    padding: var(--vm-space-12) var(--vm-space-6);
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--vm-space-12);
    align-items: start;
}

.vm-single-camera__main h1 {
    margin-top: var(--vm-space-4);
    margin-bottom: var(--vm-space-4);
}

.vm-single-camera__description {
    font-size: var(--vm-text-lg);
    line-height: 1.8;
    color: var(--vm-text-primary);
    margin-bottom: var(--vm-space-8);
}

.vm-single-camera__dotazioni {
    margin-top: var(--vm-space-8);
}

.vm-single-camera__dotazioni h3 {
    font-family: var(--vm-font-heading);
    font-size: var(--vm-text-xl);
    color: var(--vm-navy);
    margin-bottom: var(--vm-space-4);
}

.vm-single-camera__dotazioni-list {
    columns: 2;
    column-gap: var(--vm-space-8);
    list-style: none;
    padding: 0;
    margin: 0;
}

.vm-single-camera__dotazioni-list li {
    margin-bottom: var(--vm-space-2);
    font-size: var(--vm-text-sm);
    color: var(--vm-text-muted);
    break-inside: avoid;
}

.vm-single-camera__dotazioni-list li::before {
    content: '✓ ';
    color: var(--vm-gold);
    font-weight: 700;
}

/* Sidebar prenotazione */
.vm-single-camera__sidebar {
    background: var(--vm-white);
    border-radius: var(--vm-radius-xl);
    padding: var(--vm-space-8);
    box-shadow: var(--vm-shadow-lg);
    position: sticky;
    top: calc(var(--vm-header-h) + var(--vm-space-6));
}

.vm-single-camera__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--vm-space-3);
    margin-bottom: var(--vm-space-6);
}

.vm-single-camera__meta-item {
    text-align: center;
    padding: var(--vm-space-3);
    background: var(--vm-cream);
    border-radius: var(--vm-radius-md);
}

.vm-single-camera__meta-label {
    display: block;
    font-size: var(--vm-text-xs);
    color: var(--vm-text-muted);
    font-family: var(--vm-font-ui);
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: var(--vm-space-1);
}

.vm-single-camera__meta-value {
    font-family: var(--vm-font-heading);
    font-size: var(--vm-text-lg);
    color: var(--vm-navy);
    font-weight: 700;
}

.vm-single-camera__best-price-note {
    font-size: var(--vm-text-xs);
    color: var(--vm-text-muted);
    text-align: center;
    margin-bottom: var(--vm-space-6);
    line-height: 1.5;
}

/* ── 404 ────────────────────────────────────────────────── */

.vm-404 {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--vm-space-20) var(--vm-space-6);
}

.vm-404__number {
    font-family: var(--vm-font-heading);
    font-size: clamp(6rem, 20vw, 12rem);
    color: var(--vm-gold-light);
    line-height: 1;
    margin-bottom: var(--vm-space-4);
    font-weight: 900;
}

.vm-404__title {
    font-family: var(--vm-font-heading);
    font-size: var(--vm-text-3xl);
    color: var(--vm-navy);
    margin-bottom: var(--vm-space-4);
}

.vm-404__text {
    font-size: var(--vm-text-lg);
    color: var(--vm-text-muted);
    max-width: 500px;
    margin: 0 auto var(--vm-space-8);
    line-height: 1.7;
}

/* ── Contatti ───────────────────────────────────────────── */

.vm-contatti {
    max-width: var(--vm-container-max);
    margin: 0 auto;
    padding: var(--vm-space-16) var(--vm-space-6);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--vm-space-12);
    align-items: start;
}

.vm-contatti__info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--vm-space-4);
    margin-bottom: var(--vm-space-6);
}

.vm-contatti__info-icon {
    width: 48px;
    height: 48px;
    background: var(--vm-gold-light);
    color: var(--vm-gold-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.vm-contatti__info-label {
    display: block;
    font-weight: 700;
    color: var(--vm-navy);
    font-family: var(--vm-font-ui);
    font-size: var(--vm-text-sm);
    letter-spacing: .04em;
    margin-bottom: var(--vm-space-1);
}

.vm-contatti__map {
    width: 100%;
    height: 420px;
    border-radius: var(--vm-radius-lg);
    overflow: hidden;
    box-shadow: var(--vm-shadow-md);
}

.vm-contatti__map iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 900px) {
    .vm-single-camera__content {
        grid-template-columns: 1fr;
    }
    .vm-single-camera__sidebar {
        position: static;
    }
    .vm-single-camera__dotazioni-list {
        columns: 1;
    }
}

@media (max-width: 768px) {
    .vm-contatti {
        grid-template-columns: 1fr;
    }
    .vm-camere-grid {
        grid-template-columns: 1fr;
    }
    .vm-single-camera__hero {
        aspect-ratio: 4 / 3;
    }
}
