/* ============================================================
   Propstack Listings – Karten-Raster
   ============================================================ */

.propstack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    padding: 4px 0 24px;
}

.propstack-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.propstack-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.13);
    text-decoration: none;
    color: inherit;
}

.propstack-card__image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    background: #f0f0f0;
}

.propstack-card__image-placeholder {
    width: 100%;
    height: 220px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 13px;
}

.propstack-card__body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.propstack-card__title {
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 0 0 2px !important;
    line-height: 1.35 !important;
    color: #1a1a1a;
}

.propstack-card__location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #777;
    margin: 0;
}

.propstack-card__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 10px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.propstack-card__stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.propstack-card__stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #aaa;
}

.propstack-card__stat strong {
    font-size: 14px;
    color: #333;
}

.propstack-card__price {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
    margin-top: auto;
    padding-top: 4px;
}

.propstack-card__price-label {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #999;
    margin-bottom: 2px;
}

/* ============================================================
   Propstack Detail-Seite
   ============================================================ */

.propstack-detail {
    max-width: 960px;
}

.propstack-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.propstack-back:hover {
    color: #000;
    text-decoration: none;
}

.propstack-detail__title {
    margin-bottom: 24px;
}

.propstack-detail__images {
    margin-bottom: 32px;
}

.propstack-detail__main-image {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin-bottom: 10px;
    cursor: zoom-in;
	aspect-ratio: 4/3;
}

.propstack-detail__thumbnails {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.propstack-detail__thumb {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.15s;
}

.propstack-detail__thumb:hover {
    opacity: 1;
}

.propstack-detail__meta {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    background: #f7f7f7;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 28px;
}

.propstack-detail__meta-item label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #999;
    margin-bottom: 5px;
    font-weight: normal;
}

.propstack-detail__meta-item strong {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.propstack-detail__price {
    margin-bottom: 28px;
}

.propstack-detail__price .propstack-detail__price-label {
    display: block;
    font-size: 13px;
    color: #888;
    margin-bottom: 4px;
}

.propstack-detail__price strong {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
}

.propstack-detail__description {
    line-height: 1.75;
    color: #444;
}

/* Interne Bezeichnung über der Headline */
.propstack-detail__internal-name {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 6px;
}

/* Abschnitte (Ausstattung, Beschreibungen) */
.propstack-detail__section {
    margin-bottom: 36px;
}

.propstack-detail__section-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* Ausstattungs-Liste */
.propstack-detail__equipment {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px 24px;
}

.propstack-detail__equipment-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
}

.propstack-detail__equipment-item svg {
    flex-shrink: 0;
    color: #5a8a4a;
}

/* Freitext-Beschreibungen */
.propstack-detail__text {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}

/* Fehlermeldung */
.propstack-error {
    padding: 20px 24px;
    background: #fff8f8;
    border: 1px solid #ffd0d0;
    border-radius: 8px;
    color: #c0392b;
    font-size: 14px;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 640px) {
    .propstack-grid {
        grid-template-columns: 1fr;
    }

    .propstack-detail__meta {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================================
   Propstack Listings Row – horizontale Karten-Reihe
   ============================================================ */

.propstack-row {
    display: flex;
    flex-direction: row;
    gap: 24px;
    overflow-x: auto;
    padding: 4px 0 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

.propstack-row::-webkit-scrollbar {
    height: 6px;
}

.propstack-row::-webkit-scrollbar-track {
    background: transparent;
}

.propstack-row::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.propstack-row-card {
    flex: 0 0 280px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.propstack-row-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.13);
    text-decoration: none;
    color: inherit;
}

.propstack-row-card__image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background: #f0f0f0;
}

.propstack-row-card__image-placeholder {
    width: 100%;
    height: 180px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 13px;
}

.propstack-row-card__body {
    padding: 16px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.propstack-row-card__title {
    font-size: 15px !important;
    font-weight: 700 !important;
    margin: 0 0 2px !important;
    line-height: 1.35 !important;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.propstack-row-card__location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #777;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.propstack-row-card__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.propstack-row-card__stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.propstack-row-card__stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #aaa;
}

.propstack-row-card__stat strong {
    font-size: 14px;
    color: #333;
}

.propstack-row-card__price {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    margin-top: auto;
    padding-top: 4px;
}

.propstack-row-card__price-label {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #999;
    margin-bottom: 2px;
}