/* ─── Apartment Module v2 Styles ──────────────────────────────────────────── */

.apt-module { font-family: inherit; color: #333; max-width: 100%; }
.apt-section-title { font-size: 1.1rem; font-weight: 700; color: #1a1a2e; margin: 0 0 16px; padding-bottom: 8px; border-bottom: 2px solid #f0f0f0; }

/* ── HERO HEADER ─────────────────────────────────────────────────────────── */
.apt-header { background-color: #1a1a2e; border-radius: 14px 14px 0 0; overflow: hidden; position: relative; min-height: 280px; display: flex; align-items: flex-end; }
.apt-header-overlay { background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.15) 100%); width: 100%; padding: 32px 28px 26px; }
.apt-header-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.apt-header h2 { margin: 0 0 6px; color: #fff; font-size: 1.9rem; font-weight: 800; line-height: 1.15; }
.apt-subtitle { color: rgba(255,255,255,0.82); margin: 0 0 6px; font-size: 1rem; }
.apt-address { color: rgba(255,255,255,0.62); margin: 0 0 6px; font-size: 0.875rem; }
.apt-avail-from { color: rgba(255,255,255,0.7); margin: 6px 0 0; font-size: 0.82rem; }

/* Availability Badge */
.apt-avail-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 0.75rem; font-weight: 700; padding: 5px 12px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.06em; }
.apt-avail-badge.available { background: #22c55e; color: #fff; }
.apt-avail-badge.reserved  { background: #f59e0b; color: #fff; }
.apt-avail-badge.rented    { background: #ef4444; color: #fff; }

.apt-price-badge { display: inline-block; background: #e94560; color: #fff; font-weight: 700; font-size: 1rem; padding: 6px 16px; border-radius: 30px; letter-spacing: 0.02em; }

/* ── GALLERY ─────────────────────────────────────────────────────────────── */
.apt-gallery { background: #000; }
.apt-gallery-main { position: relative; width: 100%; height: 380px; overflow: hidden; }
.apt-gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.3s; }
.apt-gallery-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.55); color: #fff; border: none; font-size: 2.2rem; line-height: 1; cursor: pointer; padding: 10px 16px; border-radius: 4px; transition: background 0.2s; z-index: 2; }
.apt-gallery-btn:hover { background: rgba(0,0,0,0.82); }
.apt-gallery-prev { left: 12px; }
.apt-gallery-next { right: 12px; }
.apt-gallery-counter { position: absolute; bottom: 12px; right: 14px; background: rgba(0,0,0,0.55); color: #fff; font-size: 0.75rem; padding: 3px 10px; border-radius: 20px; }
.apt-gallery-thumbs { display: flex; gap: 4px; padding: 6px; background: #111; overflow-x: auto; }
.apt-gallery-thumbs img { width: 70px; height: 52px; object-fit: cover; cursor: pointer; opacity: 0.55; border-radius: 3px; border: 2px solid transparent; transition: opacity 0.2s, border-color 0.2s; flex-shrink: 0; }
.apt-gallery-thumbs img.active, .apt-gallery-thumbs img:hover { opacity: 1; border-color: #e94560; }

/* ── STATS BAR ───────────────────────────────────────────────────────────── */
.apt-stats { display: flex; flex-wrap: wrap; background: #f8f8f8; border: 1px solid #ebebeb; border-top: none; }
.apt-stat { flex: 1; min-width: 80px; display: flex; flex-direction: column; align-items: center; padding: 16px 10px; border-right: 1px solid #ebebeb; }
.apt-stat:last-child { border-right: none; }
.apt-stat-icon { font-size: 1.3rem; margin-bottom: 4px; color: #e94560; }
.apt-stat strong { font-size: 1.05rem; font-weight: 700; color: #1a1a2e; }
.apt-stat small { font-size: 0.68rem; color: #999; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }

/* ── BOOKING BAR ─────────────────────────────────────────────────────────── */
.apt-booking-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: #fff; border: 1px solid #ebebeb; border-top: none; flex-wrap: wrap; }
.apt-booking-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.apt-booking-price { font-size: 1.3rem; font-weight: 800; color: #1a1a2e; }
.apt-avail-inline { font-size: 0.78rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.05em; }
.apt-avail-available { background: #dcfce7; color: #166534; }
.apt-avail-reserved  { background: #fef3c7; color: #92400e; }
.apt-avail-rented    { background: #fee2e2; color: #991b1b; }
.apt-booking-right { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */
.apt-btn-book {
    display: inline-flex; align-items: center; justify-content: center;
    background: #e94560; color: #fff; border: 2px solid #e94560;
    padding: 11px 26px; border-radius: 8px; font-size: 0.95rem; font-weight: 700;
    cursor: pointer; text-decoration: none; transition: all 0.2s; white-space: nowrap;
}
.apt-btn-book:hover { background: #c73652; border-color: #c73652; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(233,69,96,0.35); }
.apt-btn-wa {
    display: inline-flex; align-items: center; justify-content: center;
    background: #25d366; color: #fff; border: 2px solid #25d366;
    padding: 11px 20px; border-radius: 8px; font-size: 0.95rem; font-weight: 700;
    cursor: pointer; text-decoration: none; transition: all 0.2s; white-space: nowrap;
}
.apt-btn-wa:hover { background: #1da851; border-color: #1da851; color: #fff; transform: translateY(-1px); }

/* ── AMENITIES ───────────────────────────────────────────────────────────── */
.apt-amenities-section { padding: 24px 0 8px; }
.apt-amenities-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.apt-amenity-item { background: #f4f4f4; border: 1px solid #e8e8e8; border-radius: 30px; padding: 7px 16px; font-size: 0.83rem; font-weight: 500; color: #444; white-space: nowrap; }

/* ── ROOMS GRID ──────────────────────────────────────────────────────────── */
.apt-rooms-section { padding: 24px 0 0; }
.apt-rooms-grid { display: grid; gap: 20px; }
.apt-cols-1 { grid-template-columns: 1fr; }
.apt-cols-2 { grid-template-columns: repeat(2,1fr); }
.apt-cols-3 { grid-template-columns: repeat(3,1fr); }
.apt-cols-4 { grid-template-columns: repeat(4,1fr); }
@media (max-width: 900px) { .apt-cols-3,.apt-cols-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .apt-cols-2,.apt-cols-3,.apt-cols-4 { grid-template-columns: 1fr; } }

/* ── ROOM CARD ───────────────────────────────────────────────────────────── */
.apt-room-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.08); transition: transform 0.22s, box-shadow 0.22s; display: flex; flex-direction: column; }
.apt-room-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,0.13); }
.apt-room-card.unavailable { opacity: 0.6; }
.room-img-wrap { position: relative; height: 185px; overflow: hidden; }
.room-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.apt-room-card:hover .room-img-wrap img { transform: scale(1.06); }
.room-type-badge { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,0.6); color: #fff; font-size: 0.7rem; font-weight: 600; padding: 4px 10px; border-radius: 20px; backdrop-filter: blur(4px); }
.room-unavail-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.45); color: #fff; font-size: 0.9rem; font-weight: 700; display: flex; align-items: center; justify-content: center; letter-spacing: 0.05em; text-transform: uppercase; }
.room-img-placeholder { height: 100px; background: linear-gradient(135deg,#f0f0f0,#e4e4e4); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; }
.room-img-placeholder span { font-size: 0.82rem; font-weight: 600; color: #aaa; text-transform: uppercase; letter-spacing: 0.05em; }
.room-unavail-tag { font-size: 0.7rem; background: #ef4444; color: #fff; padding: 2px 8px; border-radius: 10px; }
.room-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.room-header-row { display: flex; align-items: center; justify-content: space-between; }
.room-name { margin: 0; font-size: 1rem; font-weight: 700; color: #1a1a2e; }
.room-avail-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.room-avail-dot.avail   { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,0.2); }
.room-avail-dot.unavail { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.2); }
.room-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.room-meta-item { font-size: 0.75rem; color: #777; background: #f5f5f5; padding: 3px 9px; border-radius: 20px; }
.room-price { font-size: 1.1rem; font-weight: 800; color: #e94560; margin-top: auto; padding-top: 4px; }
.room-features { font-size: 0.78rem; color: #888; margin: 0; line-height: 1.55; border-top: 1px solid #f0f0f0; padding-top: 8px; }

/* ── AGENT CARD ──────────────────────────────────────────────────────────── */
.apt-agent-card { display: flex; align-items: center; gap: 18px; background: #f8f8f8; border: 1px solid #ebebeb; border-radius: 12px; padding: 20px; margin-top: 24px; }
.apt-agent-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.12); }
.apt-agent-info { display: flex; flex-direction: column; gap: 4px; }
.apt-agent-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: #aaa; font-weight: 600; }
.apt-agent-name { font-size: 1rem; font-weight: 700; color: #1a1a2e; }
.apt-agent-contact { font-size: 0.85rem; color: #555; text-decoration: none; transition: color 0.2s; }
.apt-agent-contact:hover { color: #e94560; }

/* ── INQUIRY FORM ────────────────────────────────────────────────────────── */
.apt-inquiry-wrap { padding: 24px 0 0; }
.apt-inquiry-form { background: #f9f9f9; border: 1px solid #ebebeb; border-radius: 12px; padding: 24px; }
.apt-form-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-bottom: 14px; }
@media (max-width:600px) { .apt-form-row { grid-template-columns: 1fr; } }
.apt-form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.apt-form-group label { font-size: 0.82rem; font-weight: 600; color: #555; }
.apt-form-group input, .apt-form-group textarea, .apt-form-group select {
    padding: 10px 13px; border: 1px solid #ddd; border-radius: 7px; font-size: 0.9rem;
    font-family: inherit; transition: border-color 0.2s, box-shadow 0.2s; background: #fff; width: 100%; box-sizing: border-box;
}
.apt-form-group input:focus, .apt-form-group textarea:focus { outline: none; border-color: #e94560; box-shadow: 0 0 0 3px rgba(233,69,96,0.12); }
.apt-form-group textarea { resize: vertical; min-height: 100px; }
.apt-form-footer { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.apt-form-msg { font-size: 0.88rem; font-weight: 600; padding: 10px 16px; border-radius: 7px; }
.apt-form-msg.success { background: #dcfce7; color: #166534; }
.apt-form-msg.error   { background: #fee2e2; color: #991b1b; }
.apt-btn-submit { min-width: 160px; }

/* ── MAP & TOUR ──────────────────────────────────────────────────────────── */
.apt-map-wrap, .apt-tour-wrap { padding: 24px 0 0; }
.apt-tour-iframe-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 12px; }
.apt-tour-iframe-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 12px; }
