/* Hericollny Booking - Public Styles */

/* Flatpicker changes */
.flatpickr-current-month span.cur-month {
    font-weight: 400;
}

.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange, .flatpickr-day.selected.inRange, .flatpickr-day.startRange.inRange, .flatpickr-day.endRange.inRange, .flatpickr-day.selected:focus, .flatpickr-day.startRange:focus, .flatpickr-day.endRange:focus, .flatpickr-day.selected:hover, .flatpickr-day.startRange:hover, .flatpickr-day.endRange:hover, .flatpickr-day.selected.prevMonthDay, .flatpickr-day.startRange.prevMonthDay, .flatpickr-day.endRange.prevMonthDay, .flatpickr-day.selected.nextMonthDay, .flatpickr-day.startRange.nextMonthDay, .flatpickr-day.endRange.nextMonthDay {
    background: #303c6c;
    border-color: #303c6c;
    color: #fff;
}

/* Search Form */
.hericollny-search-form {
    background: #fff;
    padding: 20px;
    border-radius: 100vh;
    margin-bottom: 30px;
    box-shadow: 0 15px 14px -1px rgba(0,0,0,.15);
}

.hericollny-search-form .search-form-row .form-group label {
    display: none;
}

.hericollny-search-form.datepicker-open {
  border-radius: 60px;
}

.hericollny-search-form .datepicker {
  background: white;
  padding: 15px;
  width: 100%;
  margin-top: 12px;
  box-sizing: border-box;
  display: block;
  height: 0px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.hericollny-search-form.datepicker-open .datepicker {
  height: 300px;
}

/* Hide the date range field and its label */
#search_date_range {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Ensure Flatpickr calendar doesn't show inline */
.flatpickr-input[type=hidden] + .flatpickr-calendar {
    display: none !important;
}

.search-form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.search-form-row .form-group,
.search-form-row .date-range-container {
    position: relative;
}

.search-form-row .form-group {
    flex: 1;
    min-width: 200px;
    box-sizing: border-box;
    margin-bottom: 0;
}

/* Location Field with Icon */
.search-form-row .form-group.location-field {
    flex: 1;
    min-width: 180px;
}

.location-field .custom-select-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border-radius: 8px;
    padding: 8px 12px;
}

.location-field .location-icon {
    width: 20px;
    height: 20px;
    color: #303c6c;
    flex-shrink: 0;
}

.location-field .dropdown-arrow {
    width: 16px;
    height: 16px;
    color: #303c6c;
    position: absolute;
    right: 14px;
}

.search-form-row .form-group select, .search-form-row .location-field .custom-select-wrapper select {
    flex: 1;
    background: transparent;
    border: none;
    padding: 4px 0;
    font-size: 14px;
    color: #303c6c;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    z-index: 1;
}

/* Occupant Field with Stepper */
.search-form-row {
    color: #303c6c;
}

.search-form-row .form-group.occupant-field {
    flex: 0 0 140px;
    min-width: 140px;
}

.search-form-row .form-group.occupant-field label {
    display: inline;
    font-size: 14px;
    font-weight: normal;
    margin-right: 15px;
    color: #303c6c;
}

.occupant-stepper {
    width: 28px;
    height: 28px;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #303c6c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    padding: 0;
    line-height: 1;
    border: none;
}

.occupant-stepper button {
    width: 28px;
    height: 28px;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #303c6c;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    padding: 0;
    line-height: 1;
    border: none;
}

.occupant-stepper button:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.25);
}

.occupant-stepper button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.occupant-stepper .occupant-value {
    font-size: 15px;
    font-weight: 500;
    min-width: 20px;
    text-align: center;
    color: #303c6c;
}

/* Connected Date Range Container */
.date-range-container {
    display: flex;
    flex: 2;
    min-width: 280px;
    background: transparent;
    overflow: hidden;
}

.date-range-container .form-group.date-field {
    flex: 1;
    min-width: auto;
    border: none;
    padding: 8px 12px;
}

.date-range-container .form-group.date-field input {
    background: transparent;
    border: none;
    padding: 4px 0;
    font-size: 14px;
    color: #303c6c;
    cursor: pointer;
    width: 100%;
    outline: none;
}

.date-range-container .form-group.date-field input#search_move_in {
    text-align: right;
}

.date-range-container .form-group.date-field input::placeholder {
    color: #303c6c;
}

.date-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    flex-shrink: 0;
}

.date-divider svg {
    width: 18px;
    height: 18px;
    color: #303c6c;
}

/* Transparent Search Button */
.search-form-row .form-group.submit-field {
    flex: 0 0 auto;
    min-width: auto;
}

.hericollny-search-form .btn-primary {
    background: #303c6c;
    color: #fff;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.hericollny-search-form .btn-primary:hover {
    background: #6172b8;
}

/* Legacy - keep for backwards compatibility */
.search-form-row .form-group.num-people-field {
    flex: 0 0 150px;
    min-width: 150px;
}

.search-form-row .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.search-form-row .form-group select,
.search-form-row .form-group input[type="date"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-form-note {
    margin-top: 15px;
    font-size: 13px;
    color: #666;
}

/* Toastify toast positioning - account for WP admin bar (top toasts only) */
body.admin-bar .toastify:not(.toastify-bottom) {
    top: 32px !important;
}

@media (max-width: 782px) {
    body.admin-bar .toastify:not(.toastify-bottom) {
        top: 46px !important;
    }
}

/* Force-center favorites toasts (Toastify's built-in center is unreliable) */
.toastify.hericollny-toast-fav {
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.toastify.hericollny-toast-fav .toast-close {
    opacity: 1;
    filter: invert(100%);
}

/* Listing Container - Full Width Layout (Airbnb Style) */
.hericollny-listing-container {
    width: 100%;
    margin: 0;
}

.hericollny-listing-container .listing-search-bar {
    position: sticky;
    top: 20px;
    z-index: 3;
}

body.admin-bar .hericollny-listing-container .listing-search-bar {
    top: 50px;
}

.listing-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 0;
    /*! height: calc(100vh - 200px); */
}

.listing-main.no-results {
    display: block;
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

.listing-left {
    /*! overflow-y: auto; */
    height: 100%;
    box-sizing: border-box;
}

.listing-right {
    position: sticky;
    top: 165px;
    height: calc(100vh - 225px);
    box-sizing: border-box;
    border-radius: 20px;
    overflow: hidden;
}

.listing-main.no-results .listing-right {
    display: none;
}

body.admin-bar .listing-right {
    top: 205px;
}

.map-sticky {
    height: 100%;
    width: 100%;
}

#apartment-map {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

/* Map Popup Styles */
.map-popup h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
}

.map-popup p {
    margin: 5px 0;
    font-size: 14px;
}

.map-popup a {
    display: inline-block;
    margin-top: 8px;
    color: #303c6c;
    text-decoration: none;
    font-weight: 600;
}

/* Multi-Apartment Popup */
.map-popup-multi {
    max-width: 300px;
}

.map-popup-multi h4 {
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #303c6c;
    font-size: 14px;
    color: #333;
}

.popup-apartment {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.popup-apartment:last-child {
    border-bottom: none;
}

.popup-apartment h5 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
}

.popup-apartment .price {
    margin: 3px 0;
    color: #303c6c;
    font-weight: 600;
    font-size: 13px;
}

.popup-apartment .btn-sm {
    display: inline-block;
    padding: 4px 12px;
    margin-top: 5px;
    background: #303c6c;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.popup-apartment .btn-sm:hover {
    background: #0056b3;
}

/* Apartment Cards - 2 Column Grid (Airbnb Style) */
.apartments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.apartment-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: all 0.3s;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.apartment-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: scale(1.01);
}

.apartment-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.apartment-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.apartment-card .apartment-content h3 {
    padding: 0 0 8px 0;
    font-size: 1.25rem;
    display: flex;
    align-items: start;
    flex-wrap: nowrap;
    gap: 8px;
}

.apartment-card .apartment-content .apartment-location {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 5px;
    margin-bottom: 15px;
}

.apartment-card .apartment-content .address {
    color: #666;
    margin: auto 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0px;
    font-size: 1rem;
}

.apartment-card .apartment-content .apartment-location .hericollny-favorite-btn {
    margin-left: auto;
}

.apartment-content .address svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.apartment-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 15px 0;
    font-size: 14px;
    color: #666;
    margin-top: 0px;
}

.apartment-detail-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #ffe8e2;
    border-radius: 20px;
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.apartment-detail-item svg {
    flex-shrink: 0;
    color: #303c6c;
}
/* 
.apartment-price:hover {
  background: #eee;
  padding: 5px 0;
  transform: scale(1.03);
} */

.apartment-price {
    display: flex;
    flex-wrap: nowrap;
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0px;
    margin-top: auto;
    text-wrap: nowrap;
    line-height: 1;
    margin: auto 0;
    transition: all 0.3s ease;
}

.price-discount-note {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #888;
    margin: auto 0;
    text-wrap: wrap;
    margin-left: 5px;
}

.price-monthly-note-container {
  display: flex;
  flex-wrap: nowrap;
  margin-bottom: 15px;
  margin-top: 2px;
}

.price-monthly-note {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #666;
    margin-top: auto;
    text-wrap: nowrap;
}

.price-monthly-note-text {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #888;
    margin: auto 0;
    margin-left: 5px;
}

/* Apartment ID Badge */
.apartment-id-badge {
    display: inline-block;
    color: #666;
    font-weight: 400;
    border-radius: 12px;
    vertical-align: middle;
    font-size: 12pt;
    white-space: nowrap;
    text-align: right;
    padding: 0px;
    margin-left: auto;
    font-family: Arial;
}

.apartment-id {
    display: inline;
    color: #666;
    font-weight: 600;
    font-size: 18px;
    margin: auto 0;
}

/* Single Apartment */
.hericollny-single-apartment {
    max-width: 1400px;
    margin: 0 auto;
}

.apartment-main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.apartment-left-content {
    padding-right: 20px;
}

.apartment-featured-image img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 30px;
}

.apartment-header h1 {
    margin: 0 0 10px 0;
}

.apartment-address {
    font-size: 18px;
    color: #666;
    margin: 0 0 15px 0;
}

.apartment-meta {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 30px;
}

.apartment-meta span {
    font-weight: 600;
}

.apartment-description,
.apartment-amenities,
.apartment-things-to-know,
.apartment-cancellation {
    margin-bottom: 30px;
}

.apartment-amenities ul {
    list-style: none;
    padding: 0;
}

.apartment-amenities li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.apartment-amenities li:before {
    content: "✓ ";
    color: #4caf50;
    font-weight: bold;
    margin-right: 8px;
}

/* Rate Calculator Sidebar */
.rate-calculator {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.rate-calculator.sticky-sidebar {
    position: sticky;
    top: 20px;
}

.rate-calculator h3 {
    margin: 0 0 20px 0;
    font-size: 22px;
}

.selected-dates {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.price-breakdown {
    margin: 20px 0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.price-row.total {
    border-top: 2px solid #333;
    border-bottom: none;
    padding-top: 15px;
    font-size: 18px;
}

.tooltip {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #666;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 12px;
    cursor: help;
    margin-left: 5px;
}

/* Optimal Days Offer - Interactive */
.optimal-days-offer {
    background: #ffffff;
    margin-bottom: 20px;
    container-type: inline-size;
    container-name: offer-columns;
}

.offer-heading {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 26px;
    font-weight: 700;
    font-style: italic;
    text-align: center;
    color: #1a1a1a;
    margin: 0 0 24px 0;
}

.offer-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.offer-column {
    padding: 24px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    text-align: center;
    position: relative;
}

/* Left card - Current Selection */
.offer-column.current-selection {
    background: #e8ecf0;
    border: 2px solid #303c6c;
}

/* Right card - Best Deal */
.offer-column.the-deal {
    background: #303c6c;
    border: 2px solid #c5a55a;
    overflow: hidden;
}

/* Hover state */
.offer-column:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Active state - currently selected option */
.offer-column.active {
    box-shadow: 0 0 0 3px rgba(107, 125, 149, 0.2);
}

/* Prevent hover effect on active column */
.offer-column.active:hover {
    transform: scale(1.05);
    cursor: default;
}

/* Selected badge - top left of current card */
.selected-badge {
    position: absolute;
    top: -1px;
    left: -1px;
    background: #303c6c;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 12px 0 12px 0;
    letter-spacing: 0.3px;
    display: none;
}

.offer-column.active .selected-badge {
    display: block;
}

.offer-column.the-deal.active .selected-badge {
    background: #c5a55a;
}

/* Current dates label - bottom of current card */
.current-dates-label {
    display: block;
    margin-top: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #6b7d95;
}

/* Best Value ribbon - diagonal on deal card */
.best-value-ribbon {
    position: absolute;
    top: 18px;
    right: -40px;
    width: 140px;
    background: #c5a55a;
    color: #ffffff;
    text-align: center;
    transform: rotate(45deg);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 4px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.best-value-ribbon span {
    display: block;
}

/* Headings */
.offer-columns .offer-column h4 {
    margin: 16px 0 16px 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1a1a1a;
    transition: color 0.2s ease;
    padding: 0;
}

.offer-column.the-deal h4 {
    color: #ffffff;
}

/* Dates */
.offer-info .dates {
    margin: 0 0 10px 0;
    font-size: 12px;
    color: #333;
    padding: 0;
}

.offer-column.the-deal .offer-info .dates {
    color: rgba(255, 255, 255, 0.85);
}

/* Monthly cost */
.offer-info .monthly-cost {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #333;
    padding: 0;
}

.offer-info .monthly-cost strong {
    font-size: 18px;
    font-weight: 800;
    display: block;
    margin-bottom: -6px;
}

.offer-column.the-deal .offer-info .monthly-cost {
    color: rgba(255, 255, 255, 0.85);
}

.offer-column.the-deal .offer-info .monthly-cost strong {
    color: #c5a55a;
}

/* Savings badge - pill style */
.offer-info .savings-badge {
    display: inline-block;
    background: #ffffff;
    color: #1a2744;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 20px;
    margin: 8px 0 8px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Total savings text */
.offer-info .total-savings {
    margin: 4px 0 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    font-style: italic;
    padding: 0px;
}

/* Legacy savings class - hide if still present */
.offer-info .savings {
    display: none;
}

/* Keyboard focus state for accessibility */
.offer-column:focus {
    outline: 2px solid #dbdfe3;
    outline-offset: 2px;
}

/* Responsive: stack columns when container is narrow */
@container offer-columns (max-width: 320px) {
    .offer-columns {
        grid-template-columns: 1fr;
    }
}

/* Scale down offer columns when container width falls below 390px */
@container offer-columns (max-width: 390px) {
    .offer-column {
        padding: 16px 12px;
        border-radius: 10px;
    }

    .offer-column h4 {
        font-size: 14px;
        margin: 6px 0 10px 0;
    }

    .offer-info .dates {
        font-size: 12px;
    }

    .offer-info .monthly-cost {
        font-size: 12px;
    }

    .offer-info .monthly-cost strong {
        font-size: 18px;
    }

    .offer-info .savings-badge {
        font-size: 11px;
        padding: 6px 12px;
    }

    .offer-info .total-savings {
        font-size: 11px;
    }

    .selected-badge {
        font-size: 9px;
        padding: 3px 10px;
    }

    .current-dates-label {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .best-value-ribbon {
        font-size: 8px;
        width: 120px;
        top: 15px;
        right: -34px;
    }
}

/* Rate Calculator Form */
.rate-calculator-form-wrapper {
    padding: 0;
}

.rate-calculator-form-wrapper h3 {
    margin: 0 0 20px 0;
    font-size: 22px;
}

.rate-calculator-form .form-group {
    margin-bottom: 18px;
}

.rate-calculator-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #303c6c;
    font-size: 14px;
}

.rate-calculator-form .date-range-field {
    position: relative;
}

.rate-calculator-form .rc-date-display {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    background: #fff;
    box-sizing: border-box;
}

.rate-calculator-form .rc-date-display:focus {
    border-color: #303c6c;
    outline: none;
}

/* Rate Calculator Occupant Stepper */
.rc-occupant-stepper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rc-occupant-stepper .stepper-btn {
  border-radius: 100vw;
  padding: 5px 10px;
  width: 30px;
  height: 30px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: #303c6c;
}

.rc-occupant-stepper .stepper-btn:hover:not(:disabled) {
    background: #303c6c;
    color: #fff;
    border-color: #303c6c;
}

.rc-occupant-stepper .stepper-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.rc-occupant-stepper input {
    width: 60px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #303c6c;
}

.rc-capacity-note {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 6px;
}

/* Static occupant display for apartments with 3+ capacity */
.rc-occupant-static {
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f8f9fa;
}

.rc-occupant-static .rc-occupant-value {
    font-size: 16px;
    font-weight: 600;
    color: #CDCDCD;
}

.rc-submit-btn {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
}

/* Change Dates Button */
.rc-change-dates-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    background: transparent;
    border: 1px dashed #303c6c;
    border-radius: 6px;
    color: #303c6c;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-sizing: border-box;
}

.rc-change-dates-btn:hover {
    background: #f5f7fa;
    border-style: solid;
}

/* Form validation error */
.rate-calculator-form .rc-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 8px;
    padding: 8px 12px;
    background: #fff5f5;
    border-radius: 4px;
    border-left: 3px solid #dc3545;
}

/* Selected dates improvements */
.selected-dates .date-value {
    margin: 0;
    font-size: 15px;
}

.selected-dates .date-arrow {
    color: #888;
    margin: 0 4px;
}

.selected-dates .occupants-value {
    margin: 8px 0 0 0;
    font-size: 14px;
    color: #666;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    box-sizing: border-box;
    border-radius: 100vh;
}

.btn-primary, .hericollny-form-wrapper .btn-primary {
    background: #303c6c;
    color: #fff;
}



.btn-primary:hover, .hericollny-form-wrapper .btn-primary:hover {
    background: #6172b8;
    color: #fff;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-large {
    padding: 15px 30px;
    font-size: 18px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

div.form-group {
    box-sizing: border-box;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    min-height: 100px;
}

.form-group .description {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

/* Booking Form */
.hericollny-booking-form {
    max-width: 800px;
    margin: 0 auto;
}

.hericollny-booking-form a {
    color: #303c6c;
    text-decoration: underline;
}

#hericollny-search {
    padding: 20px;
    background-color: #ffe8e2;
    border: 1px solid #f3eadc;
    border-radius: 100vh;
}


.form-section {
    background: #fff;
    padding: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
}

.form-section h3 {
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #303c6c;
}

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

.occupant-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* Occupant Accordion */
.occupant-accordion {
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    margin-bottom: 12px;
    /* overflow: hidden; */
}

.occupant-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #f8f9fa;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

div.occupant-accordion-header h4 {
    margin: 0;
    font-size: 16px;
    padding: 0px;
}

.accordion-toggle {
    font-size: 16px;
    color: #666;
    transition: transform 0.3s;
    font-weight: 600;
}

.occupant-accordion-body {
    padding: 20px 18px;
    border-top: 1px solid #e4e4e4;
}

.occupant-accordion.active .occupant-accordion-header {
    background: #eef2f7;
}

.occupant-accordion-body .documents-heading {
    margin: 20px 0 0px 0;
    font-size: 24px;
    color: #303c6c;
    padding-top: 15px;
    border-top: 1px solid #e4e4e4;
}

.timeline {
    list-style: none;
    padding: 0;
}

.timeline li {
    padding: 15px 0 15px 30px;
    border-left: 2px solid #ffe8e2;
    margin-bottom: 15px;
    position: relative;
}

.timeline li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 20px;
    width: 13px;
    height: 13px;
    background: #303c6c;
    border-radius: 50%;
    margin-left: -1px;
    transform: translateX(-50%);
}

#timeline-section .note {
  font-size: 14px;
  line-height: 14px;
  font-style: italic;
}

.notice-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 15px 0;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    max-width: 500px;
    text-align: center;
}

.modal-content h3 {
    margin-top: 0;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

/* Messages */
.success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #ffe8e2;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #dc3545;
}

/* User Dashboard */
.hericollny-user-dashboard {
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
    max-width: 100%;
    overflow-x: auto;
}

.tab-button {
    padding: 15px 30px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
}

.tab-button:hover {
    color: #303c6c;
    background: #f8f9fa;
}

.tab-button.active {
    color: #303c6c;
    border-bottom-color: #303c6c;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.profile-form-container {
    max-width: 600px;
    background: #fff;
    padding: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.profile-form-container h3 {
    margin: 0 0 10px 0;
}

.profile-form-container .description {
    color: #666;
    margin-bottom: 25px;
}

.applications-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.applications-table th,
.applications-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.applications-table th {
    background: #f8f9fa;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
    .listing-main {
        grid-template-columns: 1fr;
        height: auto;
    }

    .listing-right {
        display: none;
    }

    .listing-left {
        height: auto;
        max-height: none;
    }
}

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

    .apartment-main-content {
        grid-template-columns: 1fr;
    }

    /* Search Form Mobile Styles */
    .hericollny-search-form {
        padding: 20px;
        border-radius: 20px;
    }

    .search-form-row {
        flex-direction: column;
        gap: 0;
        align-items: center;
    }

    .search-form-row .form-group,
    .search-form-row .date-range-container {
        padding-bottom: 15px;
        margin-bottom: 15px;
        width: 100%;
        min-width: 100%;
        box-sizing: border-box;
        padding: 0;
    }

    /* Horizontal dividers between fields on mobile - full width of form */
    .search-form-row .form-group:not(.submit-field, .date-field)::after,
    .search-form-row .date-range-container::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: -20px;
        right: -20px;
        width: auto;
        height: 1px;
        background: rgba(0, 0, 0, 0.1);
    }

    .search-form-row .form-group.location-field {
        min-width: auto;
    }

    .search-form-row .form-group.occupant-field {
        flex: none;
        min-width: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
        padding: 8px 0 12px 0;
    }

    .search-form-row .form-group.occupant-field label {
        display: inline !important;
    }

    .occupant-stepper {
        display: inline-flex;
        gap: 10px;
    }

    /* Date Range Container Mobile */
    .date-range-container {
        flex-direction: row;
        min-width: auto;
        border: none;
        border-radius: 0;
        gap: 10px;
    }

    .date-range-container .form-group.date-field {
        width: auto;
        padding: 0;
    }

    .date-range-container .form-group.date-field::before {
        display: none;
    }

    .date-divider {
        padding: 0 5px;
        justify-content: center;
        margin-bottom: 15px;
    }

    .date-divider svg {
        transform: none;
        width: 16px;
        height: 16px;
    }

    /* Search Button Mobile - Full Width */
    .search-form-row .form-group.submit-field {
        padding-bottom: 0;
        margin-bottom: 0;
        width: 100%;
    }

    .search-form-row .form-group.submit-field::before {
        display: none;
    }

    .hericollny-search-form .btn-primary {
        width: 100%;
        padding: 14px 24px;
    }

    /* Search Button Mobile */
    #hericollny-search {
        border-radius: 20px;
    }
    
    body.admin-bar .hericollny-listing-container .listing-search-bar {
        top: 0px;
    }
    
    .hericollny-listing-container .listing-search-bar {
        position: relative;
    }
    
    .search-form-row .form-group.submit-field {
        width: 100%;
        min-width: 100%;
    }

    .hericollny-search-form .btn-primary {
        width: 100%;
        padding: 14px 24px;
    }

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

/* ============================================
   Multi-Step Form Styles
   ============================================ */

/* Form Steps */
.hericollny-application-form .form-step {
    display: none;
    animation: fadeInStep 0.4s ease-in;
}

.hericollny-application-form .form-step.active {
    display: block;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hericollny-application-form .hericollny-application-form .form-step h3 {
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 22px;
    border-bottom: 2px solid #303c6c;
    padding-bottom: 10px;
}

/* Navigation Buttons */
.form-navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

#btn-prev-step {
    background: #6c757d;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#btn-prev-step:hover {
    background: #5a6268;
}

#btn-next-step,
#btn-submit-application {
    margin-left: auto;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Validation Errors */
.error-border {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.validation-error {
    display: block;
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
}

.alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* File Upload Styling */
input[type="file"] {
    border: 2px dashed #ced4da;
    padding: 12px;
    border-radius: 4px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

input[type="file"]:hover {
    border-color: #303c6c;
    background: #e7f3ff;
}

.file-info {
    display: block;
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
    font-style: italic;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
}

.modal-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.modal-buttons {
    display: inline-flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-buttons .btn {
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    border: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.modal-buttons .btn-primary {
    background: #303c6c;
    color: white;
}

.modal-buttons .btn-primary:hover {
    background: #6172b8;
}

.modal-buttons .btn-secondary {
    background: #6c757d;
    color: white;
}

.modal-buttons .btn-secondary:hover {
    background: #5a6268;
}

/* Radio Group Styling */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-group label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-wrap: wrap;
}

.radio-group label:hover {
    background: #f8f9fa;
    border-color: #303c6c;
}

.radio-group input[type="radio"] {
    margin-top: 3px;
    accent-color: #303c6c;
}

.radio-group .description {
    display: block;
    font-size: 13px;
    color: #6c757d;
    margin-top: 4px;
    margin-left: 24px;
}

input[name="payment_plan"] + strong {
  text-wrap: nowrap;
}

input[name="payment_plan"] + strong + .description {
  display: block;
  width: 100%;
  margin-top: 0px;
  margin-left: 20px;
}

/* Responsive Design for Multi-Step Form */
@media (max-width: 768px) {
    .form-navigation-buttons {
        flex-direction: column;
        gap: 10px;
    }

    #btn-next-step,
    #btn-submit-application {
        margin-left: 0;
        width: 100%;
    }

    #btn-prev-step {
        width: 100%;
    }

    .modal-content {
        padding: 20px;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .modal-buttons .btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   Amenities Shortcode Styles (Key Features)
   ============================================ */

.hericollny-amenities-wrapper {
    margin: 40px 0;
    padding: 30px 0;
    background: #f9f9f9;
    padding: 20px;
}

.hericollny-amenities-title {
    margin: 0 0 30px 0;
    font-size: 28px;
    font-weight: 400;
    color: #303c6c;
}

.hericollny-amenities-title em,
.hericollny-amenities-title i {
    font-style: italic;
    color: #e07a5f;
}

.hericollny-amenities-grid {
    display: grid;
    gap: 30px 20px;
}

.hericollny-amenities-grid.columns-1 {
    grid-template-columns: 1fr;
}

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

.hericollny-amenities-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.hericollny-amenities-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.hericollny-amenities-grid.columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

.hericollny-amenities-grid.columns-6 {
    grid-template-columns: repeat(6, 1fr);
}

.hericollny-amenity-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
}

.hericollny-amenity-feature .amenity-icon-wrap {
    margin-bottom: 12px;
}

.hericollny-amenity-feature .amenity-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.hericollny-amenity-feature .amenity-icon-default {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e07a5f;
    font-size: 32px;
}

.hericollny-amenity-feature .amenity-label {
    font-size: 14px;
    font-weight: 600;
    color: #303c6c;
    line-height: 1.4;
    max-width: 120px;
}

/* Responsive Amenities Grid */
@media (max-width: 1024px) {
    .hericollny-amenities-grid.columns-5,
    .hericollny-amenities-grid.columns-6 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .hericollny-amenities-grid.columns-4,
    .hericollny-amenities-grid.columns-5,
    .hericollny-amenities-grid.columns-6 {
        grid-template-columns: repeat(3, 1fr);
    }

    .hericollny-amenity-feature .amenity-icon,
    .hericollny-amenity-feature .amenity-icon-default {
        width: 48px;
        height: 48px;
    }

    .hericollny-amenity-feature .amenity-label {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .hericollny-amenities-grid.columns-3,
    .hericollny-amenities-grid.columns-4,
    .hericollny-amenities-grid.columns-5,
    .hericollny-amenities-grid.columns-6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hericollny-amenity-feature .amenity-icon,
    .hericollny-amenity-feature .amenity-icon-default {
        width: 40px;
        height: 40px;
    }
}

/* ============================================
   Full-Screen Loading Overlay
   ============================================ */

.hericollny-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hericollny-loading-overlay .loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.loading-spinner {
    width: 56px;
    height: 56px;
    border: 5px solid #e0e0e0;
    border-top-color: #303c6c;
    border-radius: 50%;
    animation: hericollny-spin 1s linear infinite;
}

@keyframes hericollny-spin {
    to { transform: rotate(360deg); }
}

.hericollny-loading-overlay p {
    margin-top: 20px;
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

/* ============================================
   No Results Message
   ============================================ */

.no-results-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 12px;
    grid-column: 1 / -1;
}

.no-results-message svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-results-message h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: #333;
}

.no-results-message p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* ============================================
   Map Marker Clustering
   ============================================ */

/* Individual location markers */
.hericollny-marker {
    background: transparent !important;
    border: none !important;
}

.hericollny-marker-icon {
    background-color: #303c6c;
    color: #fff;
    border: 3px solid #fff;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.hericollny-marker-icon:hover {
    transform: scale(1.1);
}

/* Cluster markers (multiple locations merged by proximity) */
.hericollny-cluster {
    background: transparent !important;
    border: none !important;
}

.hericollny-cluster-icon {
    background-color: #303c6c;
    color: #fff;
    border: 4px solid rgba(255,255,255,0.8);
    border-radius: 50%;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.35);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.hericollny-cluster-icon:hover {
    transform: scale(1.1);
}

/* Override default MarkerCluster styles */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background-color: rgba(48, 60, 108, 0.4) !important;
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background-color: #303c6c !important;
    color: #fff !important;
}

/* ============================================
   International Phone Input (intl-tel-input)
   ============================================ */

/* Container styling */
.iti {
    width: 100%;
    display: block;
}

/* Input field styling to match other form inputs */
.iti input.intl-phone-input,
.form-group .iti input[type="tel"] {
    width: 100%;
    padding: 12px;
    padding-left: 52px; /* Space for country flag */
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.iti__selected-dial-code {
    font-size: 14px;
    font-weight: 400;
}

#tve_editor .iti ul, #tve_editor .iti li {
  margin: 0px;
}

/* When separate dial code is shown, add more padding */
.iti--separate-dial-code input.intl-phone-input,
.iti--separate-dial-code .iti__selected-flag {
    background-color: transparent;
}

.iti--separate-dial-code input[type="tel"] {
    padding-left: 90px; /* More space for flag + dial code */
}

/* Flag container styling */
.iti__flag-container {
    padding: 0;
    bottom: unset;
    height: 44px;
}

.iti__selected-flag {
    padding: 0 8px 0 12px;
    height: 100%;
    border-radius: 4px 0 0 4px;
}

/* Dropdown styling */
.iti__country-list {
    z-index: 10000;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 250px;
}

.iti__country {
    padding: 8px 12px;
    font-size: 14px;
}

.iti__country:hover {
    background-color: #f5f5f5;
}

.iti__country.iti__highlight {
    background-color: #e8f4f8;
}

/* Dial code styling */
.iti__dial-code {
    color: #666;
}

/* Error state for phone input */
.iti input.intl-phone-input.error-border,
.form-group .iti input[type="tel"].error-border {
    border-color: #e74c3c;
}

/* Focus state */
.iti input.intl-phone-input:focus,
.form-group .iti input[type="tel"]:focus {
    border-color: #303c6c;
    outline: none;
    box-shadow: 0 0 0 2px rgba(48, 60, 108, 0.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .iti__country-list {
        max-height: 200px;
    }

    .iti--separate-dial-code input[type="tel"] {
        padding-left: 85px;
    }
}

/* ============================================
   Favorites Heart Icon
   ============================================ */

/* Make apartment-image the positioning context */
.apartment-image {
    position: relative;
}

/* Heart button positioning - overlays on apartment image */
.hericollny-favorite-btn {
    background: rgba(255, 232, 226, 0.5);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
    padding: 0;
    /*! box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
}

.hericollny-favorite-btn:hover {
    background: rgb(255, 232, 226);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Heart icon SVG - outlined (not favorited) */
.hericollny-favorite-btn .heart-icon {
    fill: none;
    stroke: #303c6c;
    stroke-width: 2;
    transition: all 0.2s ease;
}

/* Heart icon SVG - filled (favorited) */
.hericollny-favorite-btn.is-favorited .heart-icon {
    fill: #303c6c;
    stroke: #303c6c;
}

/* Subtle animation on state change */
.hericollny-favorite-btn.is-favorited {
    animation: hericollny-heart-pop 0.3s ease;
    background: rgba(255, 232, 226, 1);
}

@keyframes hericollny-heart-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ============================================
   Shortcode Favorite Toggle (single apartment pages)
   ============================================ */
.id_and_favorites {
  width: 100%;
  display: flex;
  gap: 15px;
}

@media (max-width: 768px) {
  .id_and_favorites .hericollny-favorite-toggle {
    margin-left: 0px !important;
}
}

.id_and_favorites .hericollny-favorite-toggle {
    margin-left: auto;
}

.hericollny-favorite-toggle .hericollny-favorite-btn {
    position: static;
    width: auto;
    height: auto;
    border-radius: 100vh;
    padding: 10px 20px;
    gap: 8px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
}

.hericollny-favorite-toggle .hericollny-favorite-btn .heart-icon {
    width: 20px;
    height: 20px;
}

.hericollny-favorite-toggle .hericollny-favorite-btn .favorite-text {
    font-size: 14px;
    font-weight: 600;
    color: #303c6c;
}

.hericollny-favorite-toggle .hericollny-favorite-btn:hover {
    background: #eef0f2;
    transform: none;
}

.hericollny-favorite-toggle .hericollny-favorite-btn.is-favorited {
    border-color: #ffe8e2;
}

/* ============================================
   Dashboard Favorites Tab
   ============================================ */

.favorites-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.favorites-loading .loading-spinner {
    width: 40px;
    height: 40px;
}

.favorites-loading p {
    margin-top: 15px;
    color: #666;
}

#favorites-tab .apartments-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 400px));
    gap: 20px;
}

#favorites-list .apartment-card {
    max-width: 400px;
}

#favorites-tab .apartment-card .apartment-content .btn.btn-primary {
  margin-top: auto;
}

@media (max-width: 1024px) {
    #favorites-tab .apartments-grid {
        grid-template-columns: repeat(2, minmax(0, 400px));
    }
}

@media (max-width: 768px) {
    #favorites-tab .apartments-grid {
        grid-template-columns: 1fr;
    }

    #favorites-list .apartment-card {
        max-width: 100%;
    }
}
