/*-- -------------------------- -->
<---     Rental Listing         -->
<--- -------------------------- -*/
@media only screen and (min-width: 0rem) {

    #listing {
        overflow: hidden;
        margin-top: 2rem;
        /* Push content above sticky bar */
        padding-bottom: 5rem;
    }

    /* ── Hero ── */
    .hero {
        position: relative;
        height: 80vh;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .hero-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }

    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: opacity 0.3s ease-in-out;
    }

    .hero-content {
        position: relative;
        z-index: 2;
        text-align: center;
        color: #fff;
        padding: 2rem;
        background-color: rgba(0, 0, 0, 0.4);
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .hero h1 {
        font-size: 3rem;
        margin: 0;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    }

    .hero-location {
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.2rem;
    }

    .hero-location img {
        width: 24px;
        height: 24px;
        margin-right: 0.5rem;
        filter: invert(1);
    }

    .hero-nav-button {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0,0,0,0.5);
        border: none;
        padding: 0.8rem 1.2rem;
        cursor: pointer;
        z-index: 3;
        color: #fff;
        font-size: 1.8rem;
        line-height: 1;
        border-radius: 4px;
        transition: background 0.2s ease;
    }

    .hero-nav-button:hover {
        background: rgba(0,0,0,0.75);
    }

    #prev { left: 20px; }
    #next { right: 20px; }

    /* ── Photo Gallery ── */
    .photo-gallery {
        padding: 2rem 15%;
        background-color: #fff;
    }

    .image-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1rem;
    }

    .image-container figure {
        margin: 0;
        height: 140px;
        overflow: hidden;
        border-radius: 4px;
    }

    .image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        cursor: pointer;
        transition: opacity 0.3s ease-in-out;
    }

    .image-container img:hover {
        opacity: 0.8;
    }

    /* ── Quick Info ── */
    .quick-info {
        display: flex;
        justify-content: space-around;
        padding: 1rem 15%;
        background-color: #fff;
        border-top: 1px solid #e0e0e0;
        border-bottom: 1px solid #e0e0e0;
    }

    .quick-info-item {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .quick-info-item img {
        margin-bottom: 0.5rem;
    }

    .quick-info-item strong {
        display: block;
        font-size: 1.6rem;
        margin-bottom: 0.2rem;
    }

    .quick-info-item span {
        font-size: 1.4rem;
        font-weight: bold;
    }

    /* ── Main Layout ── */
    .listing-container {
        padding: 2rem 15%;
    }

    .content {
        max-width: 860px;
        margin: 0 auto;
    }

    /* ── Description ── */
    .description-area {
        width: 100%;
    }

    .description-text {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        line-height: 1.6;
    }

    .description-text a {
        font-size: 1.3rem;
    }

    .video-container {
        position: relative;
        padding-bottom: 56.25%;
        height: 0;
        overflow: hidden;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
    }

    .review-link {
        display: inline-block;
        margin-top: 0.5rem;
        margin-bottom: 1.5rem;
        font-size: 1rem;
        color: var(--primary);
        text-decoration: underline;
    }

    .review-link:hover {
        color: #87B5F9;
    }

    .inline-book-btn {
        display: block;
        width: 100%;
        text-align: center;
        padding: 1.2rem;
        margin: 2rem 0 1rem;
        background-color: var(--primary);
        color: #fff;
        text-decoration: none;
        border-radius: 4px;
        font-size: 1.2rem;
        font-weight: bold;
        transition: background-color 0.3s ease, transform 0.2s ease;
        box-sizing: border-box;
    }

    .inline-book-btn:hover {
        opacity: 0.85;
    }

    /* ── Inquiry Toggle ── */
    .inquiry-toggle-wrap {
        margin-top: 1.5rem;
    }

    .inquiry-toggle-btn {
        background: none;
        border: 1px solid #ccc;
        padding: 0.8rem 1.5rem;
        border-radius: 4px;
        cursor: pointer;
        font-size: 1rem;
        color: #555;
        width: 100%;
        text-align: center;
        transition: border-color 0.3s, color 0.3s;
    }

    .inquiry-toggle-btn:hover {
        border-color: var(--primary);
        color: var(--primary);
    }

    .inquiry-form {
        margin-top: 1.5rem;
        background-color: #fff;
        padding: 1.5rem;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }

    #inquiry-form {
        display: grid;
        gap: 1rem;
    }

    #inquiry-form label {
        font-weight: bold;
        font-size: 1.2rem;
    }

    #inquiry-form input,
    #inquiry-form textarea {
        width: 100%;
        padding: 0.5rem;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 1.1rem;
        box-sizing: border-box;
    }

    #inquiry-form button[type="submit"] {
        background-color: var(--primary);
        color: #fff;
        border: none;
        padding: 1rem;
        border-radius: 4px;
        cursor: pointer;
        font-weight: bold;
        font-size: 1.2rem;
        transition: background-color 0.3s ease;
    }

    #inquiry-form button[type="submit"]:hover {
        background-color: #87B5F9;
    }

    #success-message {
        background-color: #dff0d8;
        border: 1px solid #d6e9c6;
        color: #3c763d;
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 4px;
    }

    /* ── Sticky Floating Bar ── */
    .sticky-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #fff;
        border-top: 1px solid #e0e0e0;
        box-shadow: 0 -4px 16px rgba(0,0,0,0.12);
        z-index: 9999;
        padding: 0.8rem 15%;
        box-sizing: border-box;
    }

    .sticky-bar-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        max-width: 1200px;
        margin: 0 auto;
    }

    .sticky-bar-info {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
    }

    .sticky-bar-title {
        font-weight: bold;
        font-size: 1rem;
        color: #333;
    }

    .sticky-bar-rates {
        font-size: 0.9rem;
        color: #666;
    }

    .sticky-bar-btn {
        display: inline-block;
        padding: 0.8rem 2.5rem;
        background-color: var(--primary);
        color: #fff;
        text-decoration: none;
        border-radius: 4px;
        font-size: 1rem;
        font-weight: bold;
        white-space: nowrap;
        transition: background-color 0.3s ease, transform 0.2s ease;
    }

    .sticky-bar-btn:hover {
        opacity: 0.85;
    }
}

/*-- -------------------------- -->
<---    Responsive Styles       -->
<--- -------------------------- -*/
@media only screen and (max-width: 63.9375rem) {
    .hero {
        height: 50vw;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-location {
        font-size: 1rem;
    }

    .hero-nav-button {
        display: none;
    }

    .photo-gallery {
        padding: 1rem;
    }

    .image-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-info {
        flex-direction: column;
        padding: 1rem;
    }

    .quick-info-item {
        margin-bottom: 1rem;
    }

    .listing-container {
        padding: 1rem;
    }

    .sticky-bar {
        padding: 0.8rem 1rem;
    }

    .sticky-bar-title {
        font-size: 0.85rem;
    }

    .sticky-bar-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
}