
/*
 * Valley Hopper Directory v2
 * Intentionally inherits the active Valley Hopper theme typography.
 */

.vhd2-profile,
.vhd2-grid,
.vhd2-profile *,
.vhd2-grid * {
    box-sizing: border-box;
    font-family: inherit;
}

body.single-vh_listing .entry-header,
body.single-vh_listing header.entry-header,
body.single-vh_listing .wp-block-post-title,
body.single-vh_listing .wp-block-post-featured-image,
body.single-vh_listing .post-thumbnail,
body.single-vh_listing .wp-block-post-author,
body.single-vh_listing .wp-block-post-meta,
body.single-vh_listing .wp-block-post-date,
body.single-vh_listing .wp-block-post-terms {
    display: none !important;
}

.vhd2-profile {
    /* Keep the original 1100px profile width, but centre it against the
       browser viewport rather than the theme's offset content column. */
    width: min(1100px, calc(100vw - 32px));
    max-width: 1100px;
    margin-top: 0;
    margin-right: 0;
    margin-bottom: 0;
    margin-left: calc(50% - 50vw + 16px);
    position: static;
    left: auto;
    transform: none;
    color: inherit;
}

.vhd2-profile-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.vhd2-hero {
    position: relative;
    height: 320px;
    background: rgba(0,0,0,.04);
    overflow: hidden;
}

.vhd2-hero img {
    width: 100%;
    height: 100%;
    display: block;
}

.vhd2-hero.vhd2-cover img { object-fit: cover; }
.vhd2-hero.vhd2-contain img {
    object-fit: contain;
    padding: 18px;
    background: rgba(0,0,0,.03);
}

.vhd2-hero-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.04);
}

.vhd2-hero-badges {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.vhd2-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    color: #fff;
    background: rgba(0,0,0,.42);
    border: 1px solid rgba(255,255,255,.65);
}

body.vh-pkg-featured .vhd2-package-pill {
    background: #C59B3A;
    color: #111;
}

body.vh-pkg-premium .vhd2-package-pill {
    background: #0F4D3C;
    color: #fff;
}

.vhd2-profile-header {
    padding: 18px 18px 6px;
}

.vhd2-profile-header h1 {
    margin: 0;
    font-family: inherit;
    font-size: 32px;
    line-height: 1.1;
    font-weight: 900;
    color: inherit;
}

.vhd2-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.vhd2-chip {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.10);
    background: rgba(0,0,0,.03);
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
}

.vhd2-profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 16px;
    padding: 18px;
}

.vhd2-profile-main,
.vhd2-profile-side {
    min-width: 0;
}

.vhd2-profile-main {
    display: grid;
    gap: 16px;
    align-content: start;
}

.vhd2-profile-side {
    display: grid;
    gap: 16px;
    align-content: start;
}

.vhd2-panel {
    background: #fff;
    border: 1px solid rgba(0,0,0,.09);
    border-radius: 18px;
    padding: 16px;
}

.vhd2-panel h2 {
    margin: 0 0 10px;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
    color: inherit;
}

.vhd2-prose {
    font: inherit;
    font-size: 15px;
    line-height: 1.65;
    font-weight: 400;
    color: #222;
}

.vhd2-prose p:first-child { margin-top: 0; }
.vhd2-prose p:last-child { margin-bottom: 0; }

.vhd2-contact-stack {
    display: grid;
    gap: 10px;
}

.vhd2-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.13);
    background: #fff;
    color: #111 !important;
    text-decoration: none !important;
    font: inherit;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
}

.vhd2-contact-btn:hover {
    box-shadow: 0 5px 18px rgba(0,0,0,.08);
    transform: translateY(-1px);
}

.vhd2-contact-btn.vhd2-primary {
    background: #111;
    color: #fff !important;
    border-color: #111;
}

.vhd2-contact-btn.vhd2-wa {
    background: #25D366;
    color: #fff !important;
    border-color: #25D366;
}

.vhd2-details {
    display: grid;
    gap: 12px;
}

.vhd2-details > div {
    display: grid;
    grid-template-columns: 92px minmax(0,1fr);
    gap: 10px;
    align-items: start;
}

.vhd2-details strong {
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    color: #555;
}

.vhd2-details span,
.vhd2-details a {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 500;
    color: #222;
    text-decoration: none;
}

.vhd2-details a {
    border-bottom: 1px dashed rgba(0,0,0,.25);
}

.vhd2-offer {
    padding: 12px;
    border-radius: 12px;
    background: rgba(197,155,58,.12);
    line-height: 1.5;
}

.vhd2-highlights,
.vhd2-mini-list {
    margin: 0;
    padding-left: 20px;
}

.vhd2-highlights li,
.vhd2-mini-list li {
    margin: 4px 0;
}

.vhd2-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 10px;
}

.vhd2-gallery-item {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.10);
    background: rgba(0,0,0,.03);
}

.vhd2-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vhd2-gallery-item:hover {
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

.vhd2-related {
    margin-top: 28px;
}

.vhd2-related > h2 {
    margin: 0 0 10px;
    font-family: inherit;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
}

/* Listing grids / town pages */
.vhd2-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 18px;
}

.vhd2-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 18px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.vhd2-card::before {
    content: "";
    position: absolute;
    z-index: 5;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: rgba(0,0,0,.10);
}

.vhd2-card.vhd2-premium::before,
.vhd2-card.vhd2-featured::before {
    background: #C59B3A;
}

.vhd2-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.vhd2-card-media {
    position: relative;
    display: block;
    height: 180px;
    overflow: hidden;
    background: rgba(0,0,0,.04);
    text-decoration: none !important;
}

.vhd2-card-media img {
    width: 100%;
    height: 100%;
    display: block;
}

.vhd2-card-media.vhd2-cover img { object-fit: cover; }
.vhd2-card-media.vhd2-contain img {
    object-fit: contain;
    padding: 12px;
}

.vhd2-card-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 34px 14px 12px;
    background: linear-gradient(to top, rgba(0,0,0,.68), rgba(0,0,0,0));
    color: #fff;
    font: inherit;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
}

.vhd2-card-badge {
    position: absolute;
    z-index: 3;
    top: 12px;
    right: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #0F4D3C;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
}

.vhd2-featured .vhd2-card-badge {
    background: #C59B3A;
    color: #111;
}

.vhd2-card-body {
    padding: 14px;
}

.vhd2-card-meta {
    margin-bottom: 7px;
    color: #666;
    font-size: 13px;
}

.vhd2-card-excerpt {
    margin: 0 0 10px;
    font: inherit;
    font-size: 13px;
    line-height: 1.45;
}

.vhd2-mini-list {
    margin-bottom: 10px;
    font-size: 13px;
}

.vhd2-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.vhd2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.14);
    background: #fff;
    color: #111 !important;
    text-decoration: none !important;
    font: inherit;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
}

.vhd2-btn-primary {
    background: #111;
    color: #fff !important;
    border-color: #111;
}

.vhd2-btn-wa {
    background: #25D366;
    color: #fff !important;
    border-color: #25D366;
}

.vhd2-muted {
    margin: 0;
    color: #777;
    font-size: 13px;
}

.vhd2-lightbox {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(0,0,0,.82);
}

.vhd2-lightbox.is-open {
    display: flex;
}

.vhd2-lightbox img {
    display: block;
    max-width: min(1100px, 94vw);
    max-height: 88vh;
    width: auto;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 18px 60px rgba(0,0,0,.4);
}

.vhd2-lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.vhd2-lightbox-nav {
    position: absolute;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.16);
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vhd2-lightbox-nav:hover,
.vhd2-lightbox-close:hover {
    background: rgba(255,255,255,.28);
}

.vhd2-lightbox-prev { left: 22px; }
.vhd2-lightbox-next { right: 22px; }

.vhd2-lightbox-nav:disabled {
    opacity: .25;
    cursor: default;
}

@media (max-width: 980px) {
    .vhd2-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .vhd2-profile-grid { grid-template-columns: 1fr; }
    .vhd2-profile-side { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 720px) {
    .vhd2-profile {
        width: calc(100vw - 18px);
        max-width: none;
        margin-left: calc(50% - 50vw + 9px);
    }

    .vhd2-hero { height: 250px; }
    .vhd2-profile-header { padding: 16px 14px 6px; }
    .vhd2-profile-grid { padding: 14px; }
    .vhd2-profile-side { grid-template-columns: 1fr; }
    .vhd2-gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

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

    .vhd2-lightbox {
        padding: 18px 10px;
    }

    .vhd2-lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 28px;
    }

    .vhd2-lightbox-prev { left: 8px; }
    .vhd2-lightbox-next { right: 8px; }
}
