/* InfoAlpin Cabane – Frontend CSS */

.iac-wrap * { box-sizing: border-box; }

.iac-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #222;
    line-height: 1.6;
}

/* FILTERS */
.iac-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.iac-search-wrap {
    position: relative;
    flex: 2;
    min-width: 200px;
}
.iac-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    pointer-events: none;
}
.iac-search-wrap input {
    width: 100%;
    padding: 8px 10px 8px 32px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #f7f6f3;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.iac-search-wrap input:focus {
    border-color: #EE874E;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(238,135,78,0.15);
}

.iac-filter-group {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
    min-width: 150px;
}
.iac-filter-group label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}
.iac-filter-group select {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    background: #f7f6f3;
    outline: none;
    cursor: pointer;
    transition: border-color 0.15s;
}
.iac-filter-group select:focus { border-color: #EE874E; background: #fff; }

.iac-btn-reset {
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s, color 0.15s;
}
.iac-btn-reset:hover { border-color: #EE874E; color: #EE874E; }

/* META */
.iac-meta {
    font-size: 13px;
    color: #777;
    margin-bottom: 1rem;
}
.iac-meta span { font-weight: 700; color: #333; }

/* GRID */
.iac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

/* CARD */
.iac-card {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.iac-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.iac-card-img { overflow: hidden; height: 185px; }
.iac-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.iac-card:hover .iac-card-img img { transform: scale(1.03); }

.iac-card-img--placeholder {
    width: 100%;
    height: 185px;
    background: linear-gradient(135deg, #2d2d2d 0%, #444 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: rgba(255,255,255,0.15);
}

.iac-card-body {
    padding: 1rem 1.1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.iac-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.iac-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 20px;
}
.iac-badge--cabana  { background: #e8f5e9; color: #2e7d32; }
.iac-badge--refugiu { background: #fff3e0; color: #e65100; }
.iac-badge--complex { background: #e3f2fd; color: #1565c0; }

.iac-masiv { font-size: 12px; color: #777; }
.iac-alt { font-size: 12px; color: #d4703a; font-weight: 700; margin-left: auto; }

.iac-card-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}
.iac-card-zona { font-size: 12.5px; color: #888; margin: 0; }

.iac-card-desc {
    font-size: 13.5px;
    color: #444;
    line-height: 1.55;
    margin: 0;
}

.iac-card-acces {
    font-size: 12.5px;
    color: #666;
    background: #f7f6f3;
    border-radius: 5px;
    padding: 7px 10px;
    border-left: 3px solid #EE874E;
    line-height: 1.5;
    margin: 0;
}
.iac-card-acces strong { color: #333; font-weight: 600; }

.iac-card-capacitate {
    font-size: 12.5px;
    color: #666;
    background: #f0f4ff;
    padding: 4px 10px;
    border-radius: 5px;
    display: inline-block;
}

.iac-card-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
    padding-top: 0.6rem;
    border-top: 1px solid #f0f0f0;
}
.iac-card-contact a {
    font-size: 12.5px;
    color: #d4703a;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    word-break: break-all;
}
.iac-card-contact a:hover { color: #EE874E; text-decoration: underline; }

/* EMPTY */
.iac-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    color: #888;
    font-size: 15px;
    background: #fff;
    border: 1px dashed #ddd;
    border-radius: 10px;
}
.iac-empty strong { display: block; font-size: 18px; color: #333; margin-bottom: 0.5rem; }

/* NOTICE */
.iac-notice {
    margin-top: 1rem;
    background: #fdf0e8;
    border-left: 3px solid #EE874E;
    padding: 0.65rem 1rem;
    font-size: 13px;
    color: #7a3d1a;
    border-radius: 5px;
}

.iac-notice--contact {
    background: #f7f6f3;
    border-left-color: #bbb;
    color: #555;
}
.iac-notice--contact a {
    color: #d4703a;
    text-decoration: none;
    font-weight: 500;
}
.iac-notice--contact a:hover { text-decoration: underline; }

@media (max-width: 600px) {
    .iac-grid { grid-template-columns: 1fr; }
    .iac-filters { flex-direction: column; align-items: stretch; }
    .iac-search-wrap, .iac-filter-group { min-width: 100%; }
}
