/* ============================================================
   listing.css — Patina & Prospect listing page styles
   Shared by hillcrest-studio.html and hillcrest-1bed.html
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: white;
    padding-top: 110px;
}

@media (max-width: 900px) {
    body { padding-top: 100px; }
}

/* ---- Hero Gallery ---- */
.hero-gallery {
    height: 70vh;
    min-height: 500px;
    position: relative;
    background: #000;
    width: 100%;
}

.gallery-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.gallery-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 16px;
    pointer-events: none;
    z-index: 40;
}

.gallery-arrow {
    pointer-events: all;
    background: rgba(255,255,255,0.88);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--primary);
    transition: all 0.25s;
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-arrow:hover {
    background: white;
    transform: scale(1.1);
    opacity: 1;
}

/* Photo counter */
#photo-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: white;
    background: rgba(0,0,0,0.5);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.82rem;
    pointer-events: none;
    z-index: 40;
}

/* ---- Pill badge play / back buttons ---- */
#play-btn,
#back-btn {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 50;
    background: rgba(10,10,10,0.62);
    color: white;
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 30px;
    padding: 0.5rem 1.1rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: inherit;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}

#play-btn:hover,
#back-btn:hover {
    background: rgba(10,10,10,0.85);
}

#back-btn { display: none; }

@media (max-width: 600px) {
    #play-btn, #back-btn {
        bottom: 12px;
        left: 12px;
        font-size: 0.74rem;
        padding: 0.4rem 0.9rem;
    }
    #photo-counter { bottom: 12px; right: 12px; font-size: 0.75rem; }
}

/* Video mode — 16:9 aspect ratio */
.hero-gallery.video-mode {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    max-height: 80vh;
}

/* ---- Thumbnail strip ---- */
.hero-thumbs {
    display: flex;
    gap: 3px;
    overflow-x: auto;
    background: #0d0d0d;
    padding: 5px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.hero-thumbs::-webkit-scrollbar { display: none; }

.hero-thumbs img {
    height: 52px;
    width: 80px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.5;
    flex-shrink: 0;
    transition: opacity 0.2s;
    border-radius: 2px;
}

.hero-thumbs img:hover  { opacity: 0.8; }
.hero-thumbs img.active { opacity: 1; outline: 2px solid var(--accent); outline-offset: -2px; }

/* ---- Photo Grid ---- */
.photo-grid-section { padding: 0; background: white; }

.photo-grid {
    max-width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.photo-grid-item {
    aspect-ratio: 1;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s;
    overflow: hidden;
    position: relative;
}

.photo-grid-item:hover { opacity: 0.8; }

.photo-grid-item:hover::after {
    content: '⤢';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.2rem;
    color: white;
    z-index: 2;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* ---- Lightbox ---- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.96);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 2px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.92);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.88);
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-arrow.prev { left: 20px; }
.lightbox-arrow.next { right: 20px; }
.lightbox.floor-plan-mode .lightbox-arrow { display: none; }

/* ---- Property Header ---- */
.property-header {
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.property-title {
    font-size: 3.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
    color: var(--primary);
    line-height: 1.1;
}

.property-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.property-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.05rem;
}

.meta-icon { font-size: 1.4rem; color: var(--accent); }

.cta-button {
    display: inline-block;
    padding: 1.1rem 2.8rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    font-size: 0.82rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s;
    border: 2px solid var(--accent);
}

.cta-button:hover {
    background: transparent;
    color: var(--primary);
    transform: translateY(-2px);
}

/* ---- Description ---- */
.description-section {
    padding: 70px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.description-section h2 {
    font-size: 2.6rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    color: var(--primary);
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 1.8rem;
}

/* ---- Amenities ---- */
.amenities-section {
    padding: 70px 5%;
    background: var(--light);
}

.amenities-container { max-width: 1200px; margin: 0 auto; }

.amenities-section h2 {
    font-size: 2.6rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    color: var(--primary);
}

.amenities-intro {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.8rem;
}

.amenity-item { display: flex; align-items: center; gap: 1rem; }
.amenity-icon { font-size: 1.7rem; color: var(--accent); }
.amenity-text { font-size: 1rem; color: var(--text); }

/* ---- Neighborhood ---- */
.neighborhood-section {
    padding: 70px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.neighborhood-section h2 {
    font-size: 2.6rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    color: var(--primary);
}

.neighborhood-intro {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.places-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    margin-bottom: 3rem;
}

.places-category h3 {
    font-size: 1.45rem;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 1.4rem;
    color: var(--primary);
}

.place-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.place-icon { font-size: 1.4rem; color: var(--accent); }
.place-name { font-size: 1rem; color: var(--text); }

.neighborhood-more {
    background: var(--light);
    padding: 3rem;
    border-radius: 10px;
    display: none;
}

.neighborhood-more.show { display: block; }

.neighborhood-more h3 {
    font-size: 1.7rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.neighborhood-more p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.learn-more-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 2px;
    font-family: inherit;
}

.learn-more-btn:hover { background: var(--accent); }

/* ---- Map ---- */
.map-section { padding: 70px 5%; background: var(--light); }
.map-container { max-width: 1200px; margin: 0 auto; }

.map-section h2 {
    font-size: 2.6rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    color: var(--primary);
}

.map-embed {
    width: 100%;
    height: 450px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* ---- Availability Calendar ---- */
.cal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.cal-nav-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 0.45rem 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--text);
    font-family: inherit;
    transition: all 0.2s;
}

.cal-nav-btn:hover   { background: #f0f0f0; }
.cal-nav-btn:disabled { opacity: 0.35; cursor: default; }

.cal-nav-label {
    font-size: 0.82rem;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

.cal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.cal-month-header {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    color: var(--primary);
}

.cal-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 4px;
}

.cal-days-header span {
    text-align: center;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    padding: 4px 0;
}

.cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.cal-day {
    text-align: center;
    padding: 7px 2px;
    font-size: 0.85rem;
    border-radius: 4px;
    line-height: 1;
}

.cal-day.past      { color: #ccc; }
.cal-day.today     { background: var(--accent); color: white; font-weight: 600; border-radius: 50%; }
.cal-day.booked    { background: #f0f0f0; color: #bbb; text-decoration: line-through; }
.cal-day.available { color: var(--text); }

.cal-legend {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.cal-legend-item { display: flex; align-items: center; gap: 0.4rem; }

.cal-legend-swatch {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    display: inline-block;
    flex-shrink: 0;
}

/* ---- Inquiry / Notify Form ---- */
.inquiry-section { padding: 80px 5%; background: var(--light); }
.inquiry-inner { max-width: 620px; margin: 0 auto; }

.inquiry-section h2 {
    font-size: 2.6rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.inquiry-section .subtitle {
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.inquiry-form { display: flex; flex-direction: column; gap: 1.2rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-field { display: flex; flex-direction: column; gap: 0.4rem; }

.form-field label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-field input,
.form-field textarea {
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    background: white;
    transition: border-color 0.2s;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-field textarea { resize: vertical; min-height: 110px; }

.form-submit {
    padding: 1rem 2.5rem;
    background: var(--accent);
    color: white;
    border: none;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
    font-family: inherit;
    border-radius: 4px;
    align-self: flex-start;
}

.form-submit:hover    { background: var(--accent-dark); }
.form-submit:disabled { background: #ccc; cursor: not-allowed; }

.form-message {
    padding: 0.9rem 1.2rem;
    border-radius: 4px;
    display: none;
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-message.success { background: #f0f9f0; border: 1px solid #81c784; color: #2e7d32; }
.form-message.error   { background: #fff0f0; border: 1px solid #ef9a9a; color: #c62828; }

/* ---- Scroll offset for fixed header ---- */
section[id] { scroll-margin-top: 120px; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .photo-grid { grid-template-columns: repeat(3, 1fr); }
    .places-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .hero-gallery { height: 50vh; min-height: 380px; }
    .photo-grid { grid-template-columns: repeat(2, 1fr); }
    .property-title { font-size: 2.2rem; }
    .property-meta { gap: 1rem; }
    .amenities-grid { grid-template-columns: 1fr; }
    .description-section h2,
    .amenities-section h2,
    .neighborhood-section h2,
    .map-section h2,
    .inquiry-section h2 { font-size: 2rem; }
}

@media (max-width: 600px) {
    .cal-grid { gap: 0.75rem; }
    .cal-month-header { font-size: 0.72rem; letter-spacing: 0.5px; margin-bottom: 0.4rem; }
    .cal-days-header span { font-size: 0.55rem; padding: 2px 0; }
    .cal-days { gap: 1px; }
    .cal-day { padding: 5px 1px; font-size: 0.72rem; }
    .cal-nav-btn { padding: 0.35rem 0.65rem; font-size: 0.75rem; }
    .cal-nav-label { font-size: 0.72rem; }
    .form-row { grid-template-columns: 1fr; }
    #floorplan-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
}
