/* ============================================================
   LUNA GLAMPING — card.css
   Carduri cazări: grid, imagine, body, prețuri
   ============================================================ */

/* ── Grid ── */
.lg-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--lg-space-8);
}

/* ── Card ── */
.lg-card {
    background: var(--lg-white);
    border-radius: var(--lg-radius-xl);
    overflow: hidden;
    box-shadow: var(--lg-shadow);
    display: flex;
    flex-direction: column;
    transition: transform var(--lg-transition), box-shadow var(--lg-transition);
    border: 1px solid var(--lg-cream-dark);
}

.lg-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--lg-shadow-lg);
}

/* ── Imagine ── */
.lg-card__image-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    text-decoration: none;
}

/* Placeholder imagine — gradient de culoare până la imagini reale */
.lg-card__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: var(--lg-space-6);
    transition: transform var(--lg-transition-slow);
}

.lg-card:hover .lg-card__image-placeholder {
    transform: scale(1.04);
}

.lg-card__image-placeholder--corturi {
    background:
        linear-gradient(to top, rgba(7, 15, 4, 0.5) 0%, transparent 60%),
        radial-gradient(ellipse 80% 60% at 40% 50%, rgba(40, 70, 20, 0.7) 0%, transparent 70%),
        linear-gradient(135deg, #1a3010 0%, #0d2008 50%, #091505 100%);
}

.lg-card__image-placeholder--tiny1 {
    background:
        linear-gradient(to top, rgba(28, 20, 10, 0.5) 0%, transparent 60%),
        radial-gradient(ellipse 70% 70% at 60% 40%, rgba(100, 75, 40, 0.6) 0%, transparent 70%),
        linear-gradient(135deg, #2c1f10 0%, #1a1208 50%, #0f0a04 100%);
}

.lg-card__image-placeholder--tiny2 {
    background:
        linear-gradient(to top, rgba(10, 20, 28, 0.5) 0%, transparent 60%),
        radial-gradient(ellipse 70% 70% at 40% 50%, rgba(40, 60, 80, 0.5) 0%, transparent 70%),
        linear-gradient(135deg, #0f1e28 0%, #081520 50%, #040d14 100%);
}

.lg-card__image-placeholder span {
    font-family: var(--lg-font-display);
    font-size: var(--lg-text-2xl);
    font-weight: 300;
    color: rgba(250, 247, 242, 0.8);
    letter-spacing: 0.04em;
    line-height: 1.2;
}

/* Badge pe imagine */
.lg-card__badge {
    position: absolute;
    top: var(--lg-space-4);
    left: var(--lg-space-4);
    padding: var(--lg-space-1) var(--lg-space-3);
    background: rgba(28, 28, 28, 0.7);
    backdrop-filter: blur(8px);
    color: rgba(250, 247, 242, 0.9);
    font-size: var(--lg-text-xs);
    font-weight: 500;
    letter-spacing: 0.05em;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.lg-card__badge--new {
    background: rgba(122, 140, 110, 0.85);
    color: white;
    border-color: transparent;
}

/* ── Body ── */
.lg-card__body {
    padding: var(--lg-space-6);
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: var(--lg-space-4);
}

/* Meta row: tip + capacitate */
.lg-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--lg-space-4);
}

.lg-card__type {
    font-size: var(--lg-text-xs);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--lg-sage);
}

.lg-card__capacity {
    display: flex;
    align-items: center;
    gap: var(--lg-space-1);
    font-size: var(--lg-text-xs);
    color: var(--lg-text-muted);
}

/* Titlu */
.lg-card__title {
    font-family: var(--lg-font-display);
    font-size: var(--lg-text-2xl);
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
}

.lg-card__title a {
    color: var(--lg-charcoal);
    text-decoration: none;
    transition: color var(--lg-transition-fast);
}
.lg-card__title a:hover { color: var(--lg-stone); }

/* Descriere */
.lg-card__desc {
    font-size: var(--lg-text-sm);
    color: var(--lg-text-muted);
    line-height: 1.75;
    margin: 0;
}

/* Facilități */
.lg-card__facilities {
    display: flex;
    flex-wrap: wrap;
    gap: var(--lg-space-2);
    list-style: none;
    padding: 0;
    margin: 0;
}

.lg-card__facilities li {
    padding: 4px var(--lg-space-3);
    background: var(--lg-cream);
    border: 1px solid var(--lg-cream-dark);
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--lg-text-muted);
}

/* Footer: preț + CTA */
.lg-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--lg-space-4);
    margin-top: auto;
    padding-top: var(--lg-space-5);
    border-top: 1px solid var(--lg-cream-dark);
}

.lg-card__pricing {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lg-card__price-num {
    font-family: var(--lg-font-display);
    font-size: var(--lg-text-3xl);
    font-weight: 500;
    color: var(--lg-charcoal);
    line-height: 1;
}

.lg-card__price-unit {
    font-size: var(--lg-text-xs);
    color: var(--lg-text-muted);
}

.lg-card__price-unit em {
    color: var(--lg-stone);
    font-style: normal;
    font-weight: 500;
}

.lg-card__price-weekend {
    font-size: var(--lg-text-xs);
    color: var(--lg-stone);
    font-weight: 500;
    margin-top: 2px;
}

/* ── Archive page header ── */
.lg-archive__header {
    text-align: center;
    padding: calc(var(--lg-nav-height) + var(--lg-space-16)) var(--lg-space-6) var(--lg-space-12);
}

.lg-archive__title {
    font-family: var(--lg-font-display);
    font-size: var(--lg-text-5xl);
    margin-bottom: var(--lg-space-4);
}

.lg-archive__intro {
    font-size: var(--lg-text-lg);
    color: var(--lg-text-muted);
    max-width: 560px;
    margin-inline: auto;
}

/* ── Single accommodation ── */
.lg-accommodation__gallery {
    width: 100%;
    height: 60vw;
    max-height: 520px;
    min-height: 300px;
    overflow: hidden;
    background: var(--lg-mist);
}

.lg-accommodation__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lg-accommodation__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--lg-space-12);
    padding: var(--lg-space-12) 0;
}

.lg-accommodation__title {
    font-family: var(--lg-font-display);
    font-size: var(--lg-text-4xl);
    margin-bottom: var(--lg-space-6);
}

.lg-accommodation__facilities {
    display: flex;
    flex-wrap: wrap;
    gap: var(--lg-space-2);
    margin: 0 0 var(--lg-space-6);
    padding: 0;
    list-style: none;
}

.lg-accommodation__facility {
    padding: var(--lg-space-2) var(--lg-space-4);
    background: var(--lg-cream-dark);
    border-radius: 100px;
    font-size: var(--lg-text-sm);
    color: var(--lg-stone-dark);
    font-weight: 500;
}

.lg-accommodation__description {
    font-size: var(--lg-text-lg);
    line-height: 1.8;
    margin-bottom: var(--lg-space-8);
}

.lg-accommodation__map-link {
    display: inline-flex;
    align-items: center;
    gap: var(--lg-space-2);
    color: var(--lg-stone);
    font-size: var(--lg-text-sm);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── Booking widget ── */
.lg-booking-widget {
    background: var(--lg-white);
    border: 1px solid var(--lg-cream-dark);
    border-radius: var(--lg-radius-xl);
    padding: var(--lg-space-8);
    box-shadow: var(--lg-shadow);
    position: sticky;
    top: calc(var(--lg-nav-height) + var(--lg-space-6));
}

.lg-booking-widget__prices { margin-bottom: var(--lg-space-6); padding-bottom: var(--lg-space-6); border-bottom: 1px solid var(--lg-cream-dark); }
.lg-booking-widget__price { font-family: var(--lg-font-display); font-size: var(--lg-text-3xl); color: var(--lg-charcoal); margin-bottom: var(--lg-space-2); }
.lg-booking-widget__price small { font-family: var(--lg-font-body); font-size: var(--lg-text-sm); color: var(--lg-text-muted); font-weight: 400; }
.lg-booking-widget__deposit { font-size: var(--lg-text-sm); color: var(--lg-text-muted); margin: 0; }
.lg-booking-widget__calendar { margin-bottom: var(--lg-space-6); min-height: 280px; background: var(--lg-cream); border-radius: var(--lg-radius); }
.lg-booking-widget__cta { width: 100%; justify-content: center; }

/* ── Tablet+ ── */
@media (min-width: 640px) {
    .lg-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .lg-cards-grid { grid-template-columns: repeat(3, 1fr); }
    .lg-accommodation__layout { grid-template-columns: 1fr 380px; align-items: start; }
    .lg-accommodation__gallery { height: 55vw; max-height: 600px; }
}
