/* ============================================
   HOME PAGE RESPONSIVE STYLES
   ============================================ */

/* 🔵 Desktop – 1024px to 1439px */
@media (max-width: 1439px) {
  /* Main Content */
  .main-content {
    margin-top: 85px;
  }

  /* Filter Section */
  .filter-section {
    height: 580px;
    padding: 0 30px;
  }

  .filter-title {
    font-size: 42px;
    margin-top: 180px;
    max-width: 550px;
  }

  .filter-links {
    gap: 120px;
    font-size: 23px;
  }

  .filter-block {
    max-width: 950px;
    height: 110px;
  }

  .filter-label {
    font-size: 18px;
  }

  .filter-input {
    font-size: 15px;
  }

  /* Places Section */
  .places-section {
    padding: 50px 20px;
  }

  .places-title {
    font-size: 32px;
  }

  .places-gallery {
    width: 800px;
    grid-template-columns: 170px 440px 170px;
    grid-auto-rows: 170px;
  }

  .place-name {
    font-size: 26px;
  }

  /* Rooms Section */
  .rooms-header {
    width: 800px;
  }

  .rooms-title {
    font-size: 22px;
  }

  .rooms-more-button {
    width: 230px;
    height: 50px;
    font-size: 17px;
  }

  .rooms-list {
    gap: 45px;
  }

  .room-card {
    width: 300px;
    height: 275px;
  }

  .room-thumb {
    height: 170px;
  }

  /* How It Works Section */
  .how-title {
    font-size: 32px;
  }

  .how-grid {
    width: 900px;
    gap: 35px;
  }

  .how-step-title {
    font-size: 26px;
  }

  .how-step-desc {
    font-size: 13px;
  }

  /* Doubts Section */
  .doubts-container {
    width: 1000px;
    height: 250px;
    padding: 0 50px;
  }

  .doubts-title {
    font-size: 32px;
  }

  .doubts-item {
    font-size: 18px;
  }

  /* FAQ Section */
  .faq-container {
    width: 1000px;
    padding: 50px;
  }

  .faq-title {
    font-size: 56px;
  }

  .faq-subtitle {
    font-size: 18px;
  }
}

/* 🟡 Tablet – 768px to 1023px */
@media (max-width: 1023px) {
  /* Main Content  
  .main-content {
     margin-top: 150px;
  }*/

  /* Filter Section */
  .filter-section {
    height: auto;
    min-height: 500px;
    padding: 40px 20px 60px;
  }

  .filter-title {
    font-size: 36px;
    margin-top: 40px;
    margin-bottom: 30px;
    max-width: 500px;
  }

  .filter-links {
    gap: 80px;
    font-size: 20px;
    margin-bottom: 40px;
  }

  .filter-block {
    max-width: 700px;
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto auto;
    padding: 30px;
    gap: 30px;
  }

  .filter-col {
    width: 100%;
    padding: 0;
  }

  .filter-col:nth-child(1),
  .filter-col:nth-child(2) {
    /* Entrada and Salida - first row */
    grid-column: span 1;
  }

  .filter-col:nth-child(1)::after {
    /* Add separator after Entrada column */
    content: "";
    position: absolute;
    right: -15px;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.32);
    display: block;
    height: 50px;
  }

  .filter-col:nth-child(3) {
    /* Zona - second row, centered */
    grid-column: 1 / -1;
    max-width: calc(50% - 10px);
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
  }

  .filter-col:nth-child(3) .filter-label {
    margin-bottom: 0;
    white-space: nowrap;
  }

  .filter-col::after {
    display: none;
  }

  .filter-label {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .filter-button-col {
    /* Button - third row, centered */
    grid-column: 1 / -1;
    padding: 0;

    display: flex;
    justify-content: center;
  }

  .search-button {
    width: 220px;
    font-size: 17px;
  }

  /* Places Section */
  .places-section {
    padding: 40px 20px;
  }

  .places-title {
    font-size: 28px;
    margin-bottom: 25px;
  }

  .places-gallery {
    width: 100%;
    max-width: 650px;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
    gap: 15px;
  }

  .place-item {
    grid-column: span 1 !important;
  }

  .place-large {
    grid-column: span 1 !important;
  }

  .place-name {
    font-size: 24px;
  }

  /* Rooms Section */
  .rooms-header {
    width: 100%;
    max-width: 650px;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
  }

  .rooms-title {
    font-size: 20px;
  }

  /* Hide the header button on tablet */
  .rooms-header .rooms-more-button {
    display: none;
  }

  .rooms-list {
    flex-wrap: wrap;
    gap: 30px;
    max-width: 650px;
  }

  /* Show the bottom button on tablet */
  .rooms-more-button-bottom {
    display: block;
    width: 250px;
  }

  /* Map Section */
  .map-container {
    height: 300px;
  }

  /* How It Works Section */
  .how-section {
    padding: 50px 20px 80px;
  }

  .how-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .how-grid {
    width: 100%;
    max-width: 650px;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .how-col::after {
    display: none;
  }

  .how-step-title {
    font-size: 24px;
    max-width: 100%;
  }

  .how-step-desc {
    max-width: 100%;
    font-weight: var(--font-medium);
  }

  /* Doubts Section */
  .doubts-container {
    width: 100%;
    max-width: 650px;
    height: auto;
    flex-direction: column;
    padding: 40px 30px;
    gap: 30px;
  }

  .doubts-content {
    padding-right: 0;
    text-align: center;
  }

  .doubts-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .doubts-item {
    font-size: 16px;
    text-align: left;
    display: inline-block;
    max-width: 100%;
  }

  .doubts-actions {
    flex-direction: row;
    gap: 15px;
  }

  /* FAQ Section */
  .faq-container {
    width: 100%;
    max-width: 650px;
    flex-direction: column;
    padding: 40px 30px;
  }

  .faq-left {
    width: 100%;
    margin-right: 0;
    margin-bottom: 30px;
    text-align: center;
  }

  .faq-title {
    font-size: 48px;
  }

  .faq-question-text {
    font-size: 15px;
  }

  .faq-answer p {
    font-size: 14px;
    font-weight: var(--font-medium);
  }
}

/* 🟠 Large Phones – 480px to 767px */
@media (max-width: 767px) {
  /* Main Content  
  .main-content {
    margin-top: 220px;
  }*/
  .main-content {
    margin-top: 60px;
  }

  /* Filter Section */
  .filter-section {
    min-height: 450px;
    padding: 30px 15px 50px;
  }

  .filter-title {
    font-size: 28px;
    margin-top: 30px;
    margin-bottom: 25px;
    max-width: 90%;
  }

  .filter-links {
    gap: 35px;
    margin-bottom: 30px;
    font-size: 22px;
  }

  .filter-link {
    font-size: 22px;
  }

  .filter-block {
    max-width: 100%;
    padding: 25px 20px;
  }

  .filter-label {
    font-size: 15px;
  }

  .filter-input {
    font-size: 16px;
    transform: scale(0.875);
    transform-origin: left center;
  }

  .filter-col:nth-child(3) {
    /* Zona - second row, centered */
    max-width: calc(70% - 10px);
  }

  .search-button {
    height: 45px;
    font-size: 17px;
  }

  /* Calendar Popup Adjustments 
  .calendar-popup,
  .calendar-popup-entrada,
  .calendar-popup-salida {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 260px;
    min-width: 260px;
    max-width: 85vw;
    padding: 10px;
  }*/
  .calendar-popup-entrada {
    left: 80%;
    right: auto;
    transform: translateX(-50%);
    max-width: 85vw;
    padding: 10px;
  }

  .calendar-popup-salida {
    left: 15%;
    right: auto;
    transform: translateX(-50%);

    max-width: 85vw;
    padding: 10px;
  }

  .calendar-grid {
    gap: 3px;
  }

  .calendar-day-header,
  .calendar-day {
    min-width: 28px;
    min-height: 28px;
    font-size: 11px;
    padding: 4px 2px;
  }

  .calendar-month-year {
    font-size: 13px;
  }

  .calendar-nav {
    font-size: 14px;
    padding: 3px;
  }

  /* Places Section */
  .places-section {
    padding: 35px 15px;
  }

  .places-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .places-gallery {
    max-width: 100%;
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
    gap: 12px;
  }

  .place-name {
    font-size: 26px;
  }

  .see-all-button {
    width: 130px;
    height: 38px;
    font-size: 13px;
  }

  /* Rooms Section */
  .rooms-section {
    padding: 0 15px 50px;
  }

  .rooms-header {
    max-width: 100%;
    gap: 18px;
  }

  .rooms-title {
    font-size: 18px;

    gap: 5px;
    text-align: center;
  }

  .rooms-more-button {
    max-width: 100%;
    height: 45px;
    font-size: 14px;
  }

  .rooms-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 100%;
    width: 100%;
  }

  .room-card {
    width: 100%;
    max-width: 100%;
    height: 320px;
  }

  .room-card:nth-child(3) {
    grid-column: auto;
    max-width: 100%;
    margin: 0;
  }

  .room-thumb {
    height: 200px;
    /* Smooth horizontal scroll gallery */
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    display: flex;
    scroll-behavior: smooth;
  }

  /* Hide scrollbar for Chrome/Safari */
  .room-thumb::-webkit-scrollbar {
    display: none;
  }

  /* Room thumb images for smooth scrolling */
  .room-thumb-image {
    min-width: 100%;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    scroll-snap-align: start;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
  }

  .room-thumb:active {
    cursor: grabbing;
  }

  /* Hide navigation arrows on mobile */
  .room-thumb-nav {
    display: none !important;
  }

  .room-info {
    height: 120px;
    padding: 15px;
    gap: 8px;
  }

  .room-line {
    font-size: 14px;
  }

  .room-zone strong {
    font-size: 14px;
  }

  .price-value {
    font-size: 24px;
  }

  .price-unit {
    font-size: 14px;
  }

  .room-owner {
    font-size: 14px;
  }

  /* Map Section */
  .map-section {
    padding: 0 15px;
  }

  .map-container {
    height: 250px;
  }

  /* How It Works Section */
  .how-section {
    padding: 40px 15px 60px;
  }

  .how-title {
    font-size: 24px;
    margin-bottom: 25px;
  }

  .how-grid {
    max-width: 100%;
    gap: 35px;
  }

  .how-icon {
    width: 70px;
    height: auto;
  }

  .how-step-title {
    font-size: 22px;
  }

  /* Doubts Section */
  .doubts-section {
    padding: 0 15px 50px;
  }

  .doubts-container {
    max-width: 100%;
    padding: 35px 25px;
    gap: 25px;
  }

  .doubts-title {
    font-size: 24px;
  }

  .doubts-item {
    font-size: 15px;
  }

  .doubts-actions {
    flex-direction: column;
    width: 100%;
  }

  .whatsapp-button,
  .contact-button {
    max-width: 100%;
    height: 45px;
    font-size: 16px;
  }

  /* FAQ Section */
  .faq-section {
    padding: 30px 15px 50px;
  }

  .faq-container {
    max-width: 100%;
    padding: 35px 25px;
  }

  .faq-title {
    font-size: 40px;
  }

  .faq-subtitle {
    font-size: 16px;
  }

  .faq-item {
    padding: 15px 0;
  }

  .faq-question-text {
    font-size: 14px;
  }

  /* Fallback if SVG doesn't load - show arrow symbol 
  .filter-link[target="_blank"]:not(:has(.external-link-icon))::after {
    content: "↗";
    font-size: 20px;
    margin-left: 2px;
  }*/
}

/* 🔴 Small Phones – up to 479px */
@media (max-width: 479px) {
  /* Main Content 
  .main-content {
    margin-top: 200px;
  }*/
  .main-content {
    margin-top: 50px;
  }

  /* Filter Section */
  .filter-section {
    min-height: 400px;
    padding: 25px 12px 40px;
  }

  .filter-title {
    font-size: 24px;
    margin-top: 25px;
    margin-bottom: 20px;
  }

  .filter-link {
    font-size: 16px;
  }

  .filter-block {
    padding: 20px 15px;
  }

  .filter-label {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .filter-input {
    font-size: 16px;
    transform: scale(0.8125);
    transform-origin: left center;
  }

  .date-input {
    padding-right: 0px;
  }

  .search-button {
    width: 130px;
    height: 35px;
    font-size: 13px;
  }

  /* Calendar Popup Adjustments 
  .calendar-popup,
  .calendar-popup-entrada,
  .calendar-popup-salida {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 240px;
    min-width: 240px;
    max-width: 90vw;
    padding: 8px;
  }*/

  .calendar-popup-entrada {
    left: 95%;
    right: auto;
    transform: translateX(-50%);
    width: 235px;
    min-width: 235px;
    max-width: 90vw;
    padding: 8px;
  }

  .calendar-popup-salida {
    left: 5%;
    right: auto;
    transform: translateX(-50%);
    width: 235px;
    min-width: 235px;
    max-width: 90vw;
    padding: 8px;
  }

  .calendar-grid {
    gap: 2px;
  }

  .calendar-day-header,
  .calendar-day {
    min-width: 26px;
    min-height: 26px;
    font-size: 10px;
    padding: 3px 2px;
  }

  .calendar-month-year {
    font-size: 12px;
  }

  .calendar-nav {
    font-size: 14px;
    padding: 2px;
  }

  /* Places Section */
  .places-section {
    padding: 30px 12px;
  }

  .places-title {
    font-size: 22px;
    margin-bottom: 18px;
  }

  .places-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
    gap: 10px;
  }

  .place-item {
    grid-column: span 1 !important;
  }

  .place-large {
    grid-column: span 1 !important;
  }

  .place-name {
    font-size: 18px;
  }

  .see-all-button {
    max-width: 180px;
    height: 42px;
    font-size: 14px;
  }

  /* Rooms Section */
  .rooms-section {
    padding: 0 12px 40px;
  }

  .rooms-header {
    gap: 15px;
  }

  .rooms-title {
    font-size: 16px;
  }

  .rooms-title-pre,
  .rooms-title-high {
    font-size: 16px;
  }

  .rooms-more-button {
    height: 45px;
    font-size: 14px;
  }

  .rooms-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 100%;
    width: 100%;
  }

  .room-card {
    width: 100%;
    max-width: 100%;
    height: 292px;
  }

  .room-card:nth-child(3) {
    grid-column: auto;
    max-width: 100%;
    margin: 0;
  }

  .room-thumb {
    height: 170px;
  }

  .room-info {
    height: 110px;
    padding: 12px 14px;
    gap: 6px;
  }

  .room-line {
    font-size: 13px;
  }

  .room-zone strong {
    font-size: 13px;
  }

  .price-value {
    font-size: 22px;
  }

  .price-unit {
    font-size: 13px;
  }

  .room-owner {
    font-size: 13px;
  }

  /* Map Section */
  .map-section {
    padding: 0 12px;
  }

  .map-container {
    height: 220px;
  }

  /* How It Works Section */
  .how-section {
    padding: 35px 12px 50px;
  }

  .how-title {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .how-grid {
    gap: 30px;
  }

  .how-icon {
    width: 60px;
    margin-bottom: 15px;
  }

  .how-step-title {
    font-size: 20px;
  }

  /* Doubts Section */
  .doubts-section {
    padding: 25px 12px 40px;
  }

  .doubts-container {
    padding: 30px 20px;
    border-radius: 30px;
    gap: 20px;
  }

  .doubts-title {
    font-size: 22px;
    margin-bottom: 15px;
  }

  .doubts-item {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .whatsapp-button,
  .contact-button {
    max-width: 100%;
    height: 45px;
    font-size: 16px;
  }

  /* FAQ Section */
  .faq-section {
    padding: 25px 12px 40px;
  }

  .faq-container {
    padding: 30px 20px;
    border-radius: 30px;
  }

  .faq-left {
    margin-bottom: 25px;
  }

  .faq-title {
    font-size: 36px;
  }

  .faq-subtitle {
    font-size: 15px;
  }

  .faq-item {
    padding: 12px 0;
  }

  .faq-question {
    gap: 10px;
  }

  .faq-question-text {
    font-size: 13px;
    margin-right: 10px;
  }

  .faq-arrow {
    width: 20px;
    height: 20px;
  }
  /* 
  .filter-link[target="_blank"]:not(:has(.external-link-icon))::after {
    content: "↗";
    font-size: 18px;
    margin-left: 1px;
  }*/
}

@media (max-width: 375px) {
  .filter-col:nth-child(3) {
    max-width: calc(75% - 10px);
  }
}

@media (max-width: 350px) {
  .filter-col:nth-child(3) {
    max-width: calc(85% - 10px);
  }
}
