/**
 * HostAway Shortcodes CSS - UPDATED FOR TWO COLUMNS
 * File: assets/css/haway-shortcodes.css
 * 
 * Design inspired by hostandkeep.com
 * Clean, modern, professional
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ===================================
   GLOBAL VARIABLES & RESET
   =================================== */
:root {
    --hk-primary: #002349;
    --hk-secondary: #E74C3C;
    --hk-text: #2D3748;
    --hk-text-light: #718096;
    --hk-border: #E2E8F0;
    --hk-bg: #F7FAFC;
    --hk-white: #FFFFFF;
    --hk-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --hk-shadow: 0 4px 12px rgba(0,0,0,0.1);
    --hk-shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --hk-radius: 12px;
    --hk-radius-sm: 8px;
    --hk-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

/* ===================================
   SHORTCODE 1: SEARCH BAR
   =================================== */
.hk-search-bar {
    background: var(--hk-white);
    border-radius: var(--hk-radius);
    box-shadow: var(--hk-shadow);
    padding: 20px;
    margin: 40px auto;
    max-width: 1200px;
}

.hk-search-form {
    display: flex;
    width: 100%;
}

.hk-search-fields {
    display: flex;
    gap: 16px;
    width: 100%;
    align-items: flex-end;
}

.hk-search-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hk-field-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--hk-text);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hk-field-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--hk-border);
    border-radius: var(--hk-radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--hk-text);
    background: var(--hk-white);
    transition: var(--hk-transition);
}

.hk-field-input:focus {
    outline: none;
    border-color: var(--hk-primary);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.hk-field-input::placeholder {
    color: var(--hk-text-light);
}

.hk-field-submit {
    flex: 0 0 auto;
}

.hk-search-button {
    padding: 14px 32px;
    background: var(--hk-primary);
    color: var(--hk-white);
    border: none;
    border-radius: var(--hk-radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--hk-transition);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    height: 50px;
}

.hk-search-button:hover {
    background: #1a252f;
    transform: translateY(-2px);
    box-shadow: var(--hk-shadow);
}

.hk-search-button svg {
    width: 18px;
    height: 18px;
}

/* Vertical Style */
.hk-search-vertical .hk-search-fields {
    flex-direction: column;
}

.hk-search-vertical .hk-search-field {
    width: 100%;
}

/* ===================================
   SHORTCODE 2: PROPERTY SLIDER
   =================================== */
.hk-slider-section {
    padding: 60px 0 0;
    background: var(--hk-white);
    border-radius:15px;
}

.hk-slider-header {
    text-align: center;
    margin-bottom: 48px;
}

.hk-slider-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--hk-primary);
    margin: 0;
    letter-spacing: -0.5px;
}

.hk-property-slider {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.hk-property-card {
    background: var(--hk-white);
    border-radius: var(--hk-radius);
    overflow: hidden;
    box-shadow: var(--hk-shadow-sm);
    transition: var(--hk-transition);
    margin: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hk-property-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hk-shadow-lg);
}

.hk-property-image-link {
    display: block;
    text-decoration: none;
}

.hk-property-image {
    position: relative;
    width: 100%;
    padding-top: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
   
    background: transparent !important;
}

.hk-property-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
      z-index: 2;
    opacity: 1 !important;
    background: transparent !important;
}

.hk-property-card:hover .hk-property-image img {
    transform: scale(1.08);
}

.hk-property-price-tag {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
       z-index: 5;
    font-weight: 700;
    color: var(--hk-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hk-price-period {
    font-size: 12px;
    font-weight: 500;
    color: var(--hk-text-light);
}

.hk-property-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hk-property-location {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--hk-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.hk-property-title {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px;
    line-height: 1.4;
}

.hk-property-title a {
    color: var(--hk-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.hk-property-title a:hover {
    color: var(--hk-primary);
}

.hk-property-meta {
    display: flex;
    gap: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    color: var(--hk-text-light);
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--hk-border);
}

/* Slick Slider Overrides */
.hk-property-slider .slick-track {
    display: flex !important;
}

.hk-property-slider .slick-slide {
    height: inherit !important;
    display: flex !important;
    background: transparent !important;
}

.hk-property-slider .slick-slide > div {
    height: 100%;
    width: 100%;
    background: transparent !important;
}

.hk-property-slider .slick-prev,
.hk-property-slider .slick-next {
    width: 48px;
    height: 48px;
    z-index: 10;
    background: var(--hk-white);
    border-radius: 8px;
    box-shadow: var(--hk-shadow);
}

.hk-property-slider .slick-prev:hover,
.hk-property-slider .slick-next:hover {
    background: var(--hk-white);
}

.hk-property-slider .slick-prev {
    left: -24px;
}

.hk-property-slider .slick-next {
    right: -24px;
}

.hk-property-slider .slick-prev:before,
.hk-property-slider .slick-next:before {
    color: var(--hk-white);
    font-size: 24px;
    opacity: 1;
}

.hk-property-slider .slick-prev:hover:before,
.hk-property-slider .slick-next:hover:before {
    color: var(--hk-white);
}

.hk-property-slider .slick-dots {
    bottom: -48px;
}

.hk-property-slider .slick-dots li button:before {
    font-size: 12px;
    color: var(--hk-primary);
    opacity: 0.3;
}

.hk-property-slider .slick-dots li.slick-active button:before {
    opacity: 1;
}

/* ===================================
   SHORTCODE 3: SEARCH RESULTS PAGE
   =================================== */
.hk-results-page {
    min-height: 100vh;
}

.hk-results-search-bar {
    position: static;
    top: 0;
    z-index: 100;
    background: var(--hk-white);
    padding: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.hk-results-search-bar .hk-search-bar {
    margin: 0 auto;
    box-shadow: none;
    border-radius: 0;
}

.hk-results-header {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 20px;
}

.hk-results-count {
    font-family: 'Inter', sans-serif;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    color: var(--hk-primary);
    margin: 0;
}

.hk-results-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    height: auto;
    min-height: calc(100vh - 250px);
}

/* Left: Listings */
.hk-results-listings {
    overflow-y: auto;
    padding: 20px;
    background: var(--hk-white);
}

/* UPDATED: Two columns on desktop */
.hk-properties-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1200px;
}

.hk-property-item {
    background: var(--hk-white);
    border-radius: var(--hk-radius);
    overflow: hidden;
    box-shadow: var(--hk-shadow-sm);
    transition: var(--hk-transition);
}

.hk-property-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--hk-shadow);
}

.hk-property-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.hk-property-item .hk-property-image {
    padding-top: 65%;
}

.hk-property-price-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 14px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--hk-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.hk-property-price-badge span {
    font-size: 11px;
    font-weight: 500;
    color: var(--hk-text-light);
}

.hk-property-content {
    padding: 16px;
}

.hk-property-city {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--hk-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.hk-property-name {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--hk-text);
    margin: 0 0 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hk-property-features {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--hk-text-light);
}

.hk-property-features span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.hk-property-features svg {
    width: 14px;
    height: 14px;
}

/* Right: Map */
.hk-results-map-wrapper {
    position: sticky;
    top: 200px;
    height: 100%;
    background: #e5e5e5;
}

#hk-results-map {
    width: 100%;
    height: 100%;
}

/* Map Popup */
.hk-map-popup {
    min-width: 280px;
    font-family: 'Inter', sans-serif;
}

.hk-map-popup img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--hk-radius-sm) var(--hk-radius-sm) 0 0;
}

.hk-map-popup-content {
    padding: 16px;
}

.hk-map-popup h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--hk-text);
}

.hk-map-popup p {
    font-size: 12px;
    color: var(--hk-text-light);
    margin: 0 0 12px;
}

.hk-map-popup-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--hk-primary);
    margin-bottom: 12px;
}

.hk-map-popup-link {
    display: inline-block;
    padding: 8px 16px;
    background: var(--hk-primary);
    color: var(--hk-white);
    text-decoration: none;
    border-radius: var(--hk-radius-sm);
    font-size: 13px;
    font-weight: 600;
    transition: var(--hk-transition);
}

.hk-map-popup-link:hover {
    background: #1a252f;
}

/* Pagination */
.hk-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 48px;
    padding: 24px;
}

.hk-page-prev,
.hk-page-next,
.hk-page-number {
    padding: 10px 16px;
    background: var(--hk-white);
    color: var(--hk-text);
    text-decoration: none;
    border-radius: var(--hk-radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: var(--hk-transition);
    border: 2px solid var(--hk-border);
}

.hk-page-prev:hover,
.hk-page-next:hover,
.hk-page-number:hover {
    background: var(--hk-primary);
    color: var(--hk-white);
    border-color: var(--hk-primary);
}

.hk-page-active {
    background: var(--hk-primary);
    color: var(--hk-white);
    border-color: var(--hk-primary);
}

/* No Results */
.hk-no-results {
    text-align: center;
    padding: 80px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.hk-no-results svg {
    width: 64px;
    height: 64px;
    color: var(--hk-text-light);
    margin-bottom: 24px;
}

.hk-no-results h3 {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--hk-text);
    margin: 0 0 12px;
}

.hk-no-results p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--hk-text-light);
    margin: 0 0 24px;
}

.hk-button-primary {
    display: inline-block;
    padding: 14px 32px;
    background: var(--hk-primary);
    color: var(--hk-white);
    text-decoration: none;
    border-radius: var(--hk-radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    transition: var(--hk-transition);
}

.hk-button-primary:hover {
    background: #1a252f;
    transform: translateY(-2px);
    box-shadow: var(--hk-shadow);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1200px) {
    .hk-results-layout {
        grid-template-columns: 1fr;
    }
    
    .hk-results-map-wrapper {
        position: relative;
        top: 0;
        height: 500px;
    }
    
    .hk-results-listings {
        height: auto;
    }
    
    /* Keep two columns on tablets */
    .hk-properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .hk-search-fields {
        flex-wrap: wrap;
    }
    
    .hk-search-field {
        flex: 1 1 calc(50% - 8px);
        min-width: calc(50% - 8px);
    }
    
    .hk-field-submit {
        flex: 1 1 100%;
    }
    
    .hk-search-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hk-search-fields {
        flex-direction: column;
    }
    
    .hk-search-field {
        flex: 1 1 100%;
        min-width: 100%;
    }
    
    /* ONE COLUMN on mobile */
    .hk-properties-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    
    .hk-property-slider .slick-prev,
    .hk-property-slider .slick-next {
        width: 40px;
        height: 40px;
    }
    
    .hk-property-slider .slick-prev {
        left: 10px;
    }
    
    .hk-property-slider .slick-next {
        right: 10px;
    }
     .hk-results-search-bar {
        position: relative !important;
        top: auto !important;
        z-index: auto !important;
    }

    .hk-results-layout {
        margin-top: 0;
    }
}

@media (max-width: 576px) {
    .hk-search-bar {
        padding: 16px;
        border-radius: var(--hk-radius-sm);
    }
    
    .hk-slider-section {
        padding: 40px 0 0;
    }
    
    .hk-results-header {
        padding: 24px 16px;
    }
    
    .hk-results-listings {
        padding: 16px;
    }
    
    /* Ensure one column on small mobile */
    .hk-properties-grid {
        grid-template-columns: 1fr !important;
    }
}
.hk-property-slider .slick-slide {
    opacity: 1 !important;
}
/* === RESULTS PAGE CLEANUP === */

.hk-results-search-bar {
    position: relative;
    top: auto;
    z-index: auto;
    box-shadow: none;
}


.hk-results-listings {
    overflow-y: visible;
}

.hk-property-item .hk-property-image {
    background: transparent;
}

.hk-property-item .hk-property-price-badge {
    z-index: 5;
}