/*

 Theme Name:   GeneratePress Child

 Theme URI:    https://generatepress.com

 Description:  Default GeneratePress child theme

 Author:       Tom Usborne

 Author URI:   https://tomusborne.com

 Template:     generatepress

 Version:      0.1

*/

/*
 * Hotel Pools - Custom Styles
 * Compact hotel card styling for hotel-pools.com
 * Color Palette inspired by GeneratePress Conserve theme
 */

/* =============================
   BREADCRUMBS
   ============================= */
.hp-breadcrumbs {
    margin: 4px 0;
    padding: 2px 0;
    font-size: 14px;
    color: #666;
}

.hp-breadcrumbs a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s;
}

.hp-breadcrumbs a:hover {
    color: #004499;
    text-decoration: underline;
}

.hp-separator {
    margin: 0 8px;
    color: #999;
}

.hp-breadcrumb-current {
    color: #333;
    font-weight: 500;
}

/* =============================
   PAGE TITLE
   ============================= */
.hp-page-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 20px 0 15px;
    line-height: 1.3;
}

/* =============================
   HOTELS GRID
   ============================= */
.hp-hotels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 12px;
    margin: 10px 0;
    padding: 14px;
}

@media (max-width: 768px) {
    .hp-hotels-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* =============================
   HOTEL CARD
   ============================= */
.hp-hotel-card {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    transition: box-shadow 0.3s, border-color 0.2s;
    position: relative;
}

.hp-hotel-card:hover {
    box-shadow: 0 4px 12px rgba(15,23,42,.12);
    border-color: #cbd5e1;
}

.hp-card-header {
    margin-bottom: 0px;
    padding-bottom: 2px;
    border-bottom: 1px solid #f1f5f9;
}

.hp-hotel-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 2px 0;
    line-height: 1.3;
}

.hp-address {
    display: flex;
    align-items: center;
    gap: 0px;
    font-size: 12px;
    color: #333;
    margin-top: 0px;
}

.hp-address-icon {
    width: 14px;
    height: 14px;
    stroke: #dc2626;
    vertical-align: middle;
    margin-right: 4px;
}

/* =============================
   CARD IMAGE
   ============================= */
.hp-card-image-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 0px;
    border-radius: 6px;
    overflow: hidden;
}

.hp-hotel-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.hp-image-overlays {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.hp-badge-container {
    position: absolute;
    top: 10px;
    left: 10px;
}

.hp-double-verified-badge {
    position: absolute;
    left: 10px;
    background: #520000;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hp-double-verified-badge.hp-no-category-badge {
    top: 10px;
}

.hp-double-verified-badge.hp-has-category-badge {
    top: 48px;
}

.hp-rating-overlays-right {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Guest Rating Box */
.hp-guest-rating-box {
    background: #0f766e;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.hp-guest-score {
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
}

.hp-guest-count {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.9;
}

/* Star Rating Box */
.hp-star-rating-box {
    background: #fbbf24;
    color: #78350f;
    font-size: 15px;
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* =============================
   BADGES
   ============================= */
.hp-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.hp-badge-budget {
    background: #16a34a;
}

.hp-badge-luxury {
    background: #9333ea;
}

.hp-badge-romantic {
    background: #db2777;
}

.hp-badge-top {
    background: #f59e0b;
}

/* Hotel Star Rating (1-5 stars in box) */
.hp-hotel-star {
    color: #78350f;
    font-size: 14px;
    line-height: 1;
}

.hp-hotel-star-half {
    position: relative;
    display: inline-block;
    color: #78350f;
    font-size: 14px;
    line-height: 1;
    background: linear-gradient(90deg, #78350f 50%, transparent 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =============================
   AMENITIES
   ============================= */
.hp-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 0px;
    padding: 8px 0;
    border-top: 1px solid #f1f5f9;
}

.hp-amenity {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #1a1a1a;
}

.hp-amenity-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #0f766e;
}

.hp-amenity-icon svg {
    width: 100%;
    height: 100%;
}

.hp-amenity-label {
    white-space: nowrap;
    font-weight: 500;
}

/* =============================
   POOL INFO
   ============================= */
.hp-pool-info {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.hp-pool-pill {
    display: inline-block;
    background: #9bb8ff;
    color: #001b5e;
    padding: 0px 12px;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(15, 118, 110, 0.3);
}

/* =============================
   DESCRIPTION & HIGHLIGHTS
   ============================= */
.hp-description {
    font-size: 14px;
    line-height: 1.6;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.hp-highlights {
    margin-bottom: 7px;
}

.hp-highlights ul {
    margin: 0;
    padding-left: 18px;
}

.hp-highlights li {
    font-size: 13px;
    line-height: 1.5;
    color: #1a1a1a;
    margin-bottom: 3px;
}

/* =============================
   ROOMS SECTION
   ============================= */
.hp-rooms-section {
    background: #f0fdf4;
    border: 1px solid #d1fae5;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 0px;
}

.hp-rooms-heading {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px 0;
}

.hp-room-box {
    background: #f0fdf4;
    border-radius: 4px;
    padding: 4px 4px;
    margin-bottom: 8px;
    position: relative;
}

.hp-room-box:last-child {
    margin-bottom: 0;
}

.hp-room-number {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #64748b;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

.hp-room-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0px;
    padding-left: 5px;
    line-height: 1.3;
}

.hp-room-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #1a1a1a;
    margin-bottom: 0px;
    gap: 10px;
}

.hp-room-info-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.hp-room-info-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hp-room-sleeps, .hp-room-sqft {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hp-room-icon {
    width: 14px;
    height: 14px;
    color: #0f766e;
}

.hp-tub-badge {
    display: inline-flex;
    align-items: center;
    background: #fbbf24;
    color: #78350f;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

/* =============================
   CHECK-IN INFO
   ============================= */
.hp-checkin-info {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 4px;
    margin-bottom: 0px;
    margin-top: 4px;
}

.hp-checkin-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 2px;
}

.hp-checkin-row:last-child {
    margin-bottom: 0;
}

.hp-checkin-left {
    flex: 1;
    text-align: left;
}

.hp-checkin-right {
    flex: 1;
    text-align: right;
}

.hp-checkin-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 500;
}

.hp-checkin-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    stroke: currentColor;
}

/* =============================
   PRICING
   ============================= */
.hp-pricing {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 6px;
    padding: 6px;
    text-align: center;
    margin-bottom: 5px;
    margin-top: 4px;
}

.hp-price-label {
    display: inline;
    font-size: 12px;
    color: #666;
    margin-right: 4px;
}

.hp-price-amount {
    display: inline;
    font-size: 26px;
    font-weight: 700;
    color: #2e7d32;
}

.hp-price-night {
    display: inline;
    font-size: 15px;
    font-weight: 400;
    color: #555;
    margin-left: 2px;
}

/* =============================
   BUTTONS
   ============================= */
.hp-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0px;
}

.hp-btn {
    display: block;
    width: 100%;
    padding: 12px 18px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.hp-btn-tripadvisor {
    background: #058537;
    color: #fff;
}

.hp-btn-tripadvisor:hover {
    background: #2d9139;
    transform: translateY(-1px);
}

.hp-btn-booking {
    background: #003b95;
    color: #fff;
}

.hp-btn-booking:hover {
    background: #002d73;
    transform: translateY(-1px);
}

.hp-btn-default {
    background: #003b95;
    color: #fff;
}

.hp-btn-default:hover {
    background: #002d73;
    transform: translateY(-1px);
}

/* =============================
   NEARBY SECTION
   ============================= */
.hp-nearby-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 10px;
}

.hp-nearby-toggle {
    width: 100%;
    background: #f5f5f5;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    transition: background 0.2s;
}

.hp-nearby-toggle:hover {
    background: #ebebeb;
}

.hp-toggle-icon {
    font-size: 11px;
    transition: transform 0.2s;
}

.hp-nearby-toggle.active .hp-toggle-icon {
    transform: rotate(180deg);
}

.hp-nearby-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.hp-nearby-content.active {
    max-height: 500px;
    padding-top: 10px;
}

.hp-nearby-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    font-size: 12px;
    color: #1a1a1a;
    border-bottom: 1px solid #f1f5f9;
}

.hp-nearby-item:last-child {
    border-bottom: none;
}

.hp-nearby-item .hp-icon {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    flex-shrink: 0;
}

.hp-nearby-distance {
    margin-left: auto;
    color: #94a3b8;
    font-size: 11px;
}

/* =============================
   OTHER CITIES & STATE CITIES
   ============================= */
.hp-other-cities,
.hp-state-cities {
    margin: 20px 0;
}

.hp-cities-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    line-height: 1.6;
}

.hp-cities-list li {
    margin: 0;
}

.hp-cities-list a {
    color: #0d9488;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
    position: relative;
}

.hp-cities-list a:hover {
    color: #0f766e;
    text-decoration: underline;
}

.hp-cities-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.hp-cities-grid li {
    margin: 0;
}

.hp-city-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}

.hp-city-link:hover {
    box-shadow: 0 2px 8px rgba(15,23,42,.12);
    border-color: #0066cc;
}

.hp-city-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.hp-city-count {
    font-size: 12px;
    color: #94a3b8;
}

/* =============================
   RESPONSIVE ADJUSTMENTS
   ============================= */
@media (max-width: 768px) {
    .hp-page-title {
        font-size: 22px;
    }
    
    .hp-hotel-card {
        padding: 10px;
    }
    
    .hp-hotel-title {
        font-size: 20px;
    }
    
    .hp-hotel-image {
        height: 210px;
    }
    
    .hp-checkin-info {
        font-size: 12px;
        padding: 8px 10px;
        gap: 6px;
    }
    
    .hp-checkin-item {
        font-size: 12px;
        gap: 4px;
    }
    
    .hp-checkin-icon {
        width: 13px;
        height: 13px;
    }
    
    .hp-room-details {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .hp-room-info-left {
        flex: 1 1 auto;
        gap: 8px;
    }
    
    .hp-room-info-right {
        flex: 0 0 auto;
    }
    
    .hp-cities-list {
        column-count: 2;
        column-gap: 20px;
        display: block;
    }
    
    .hp-cities-list li {
        break-inside: avoid;
        margin-bottom: 8px;
    }
    
    .hp-cities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Mobile - 600px and below */
@media (max-width: 600px) {
    .hp-checkin-info {
        font-size: 12px;
        padding: 8px 10px;
        gap: 6px;
    }
    
    .hp-checkin-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 8px;
    }
    
    .hp-checkin-left,
    .hp-checkin-right {
        flex: 1 1 0%;
        min-width: 0;
        overflow: hidden;
    }
    
    .hp-checkin-item {
        font-size: 12px;
        gap: 4px;
        display: inline-flex !important;
        flex-wrap: nowrap;
    }
    
    .hp-checkin-icon {
        width: 13px;
        height: 13px;
        flex-shrink: 0;
    }
}

/* Medium screens (tablets) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hp-cities-list {
        column-count: 3;
        column-gap: 20px;
        display: block;
    }
    
    .hp-cities-list li {
        break-inside: avoid;
        margin-bottom: 8px;
    }
    
    .hp-cities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .hp-checkin-info {
        font-size: 11px;
        padding: 6px 8px;
    }
    
    .hp-checkin-item {
        font-size: 12px;
        gap: 3px;
    }
    
    .hp-checkin-icon {
        width: 12px;
        height: 12px;
    }
    
    .hp-cities-list {
        column-count: 2;
        column-gap: 16px;
    }
    
    .hp-cities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* =============================
   UTILITY CLASSES
   ============================= */
.hp-section-heading {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 10px 0 2px;
    padding: 10px;
    border-bottom: 3px solid #667eea;
}

.hp-no-results {
    text-align: center;
    padding: 30px 15px;
    color: #94a3b8;
    font-size: 15px;
}

/* =============================
   STATE HOTELS BY CITY
   ============================= */
.hp-state-hotels-by-city {
    margin: 15px 0;
}

.hp-city-section {
    margin-bottom: 25px;
}

.hp-city-header {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 5px;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

.hp-city-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
    text-align: center;
}

.hp-city-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.hp-city-title a:hover {
    color: #0d9488;
}

.hp-view-all-link {
    font-size: 14px;
    font-weight: 600;
    color: #0d9488;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}

.hp-view-all-link:hover {
    color: #0f766e;
}

.hp-city-footer {
    margin-top: 20px;
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.hp-view-all-button {
    display: inline-block;
    padding: 10px 24px;
    background: #0d9488;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.hp-view-all-button:hover {
    background: #0f766e;
    color: #ffffff;
}

@media (max-width: 768px) {
    .hp-city-header {
        padding: 12px;
    }
    
    .hp-city-title {
        font-size: 20px;
    }
    
    .hp-view-all-button {
        font-size: 13px;
        padding: 8px 20px;
    }
}
