.carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  flex: 0 0 auto;
  width: 100%;
  max-height: 468px;
}

@media (min-width: 901px) {
  .carousel-slide { width: 33.33%; }
}

@media (min-width: 1200px) {
  .carousel-slide { width: 25%; }
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  border: none;
}

.carousel-button.prev { left: 10px; }
.carousel-button.next { right: 10px; }

.carousel-button img { width: 16px; height: 16px; }

/* Para iconos alternativos más pequeños si quieres */
.slider-prev, .slider-next {
  width: 24px;
  height: 24px;
}

.carousel-mv {
    display: none;
}

.divider {
  width: 2px;
  background: white;
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
}


.back-link {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  margin: -40px 0 40px 0;
  width: max-content;
  margin-right: auto;
  text-align: left;
  justify-content: flex-start;
}

.back-link img {
  width: 18px;
  height: 18px;
}

.back-link span {
  font-size: 10px;
  text-transform: uppercase;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.back-link:hover span {
  opacity: 1;
  max-width: 100px;
}

/* MAIN SECTION */
.main-section {
  width: var(--w100);
  background-color: rgba(224, 215, 199, 0.37) !important;
  padding: 0 var(--main-padding); 
  box-sizing: border-box;
}

.section-inner {
  display: flex;
  gap: 40px; 
  padding: var(--p80) var(--p20);
  margin: 0 auto;
  color: var(--color-black);
  text-align: left;
}

.inner-sidebar {
  width: 300px;
  flex-shrink: 0;
  /*background-color: #ededed;*/
}

.inner-main {
  flex: 1;
  min-width: 0; 
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-weight: bold;
  font-size: 14px;
}

.calendar-header span {
  flex-grow: 1;
  text-align: center;
  font-size: 13px;
}

.calendar-nav-prev {
  cursor: pointer;
  padding: 4px 8px;
  user-select: none;
  font-size: 16px;
}

.calendar-nav-next {
  cursor: pointer;
  padding: 0px 0px 0px 8px;
  user-select: none;
  font-size: 16px;
}

.custom-calendar {
  position: relative;
  z-index: 9999;
  font-size: 13px;
}

.today {
  color: #a5c0ce;               
  font-weight: 600;
}

.today:hover {
  color: #fff;               
  font-weight: 600;
}

.detail-price {
    margin-top: 100px;
    text-align: center;
    color: #000;
    font-weight: 300;
    font-size: 40px;
}

.detail-price-on-request {
    margin-top: 100px;
    text-align: center;
    color: #000;
    font-weight: 300;
    font-size: 30px;
}

.detail-btn-booking {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #a5c0ce;
    color: black;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.9px;
    border: none;
    border-radius: 20px;
    margin-top: 20px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.detail-btn-booking:hover {
  background-color: #90aabd;
}

.info-block {
    display: flex;
    width: 100%;
    padding: var(--p20) var(--p40);
    background-color: var(--color-white);
    flex-direction: column;
}

.mt30 {
    margin-top: 30px;
}

.mt20 {
    margin-top: 20px;
}

.mt3 {
    margin-top: 3px;
}


.info-block-title {
    width: 100%;
    font-family: "Playfair Display", serif;
    font-weight: 100 !important;
    font-size: 33px;
}

.info-block-location {
    width: 100%;
    margin-top: 10px;
    font-weight: 400;
    font-size: 14px;
    color: var(--color-gray);
}

.info-wrapper {
  display: flex;
  align-items: stretch; 
  gap: 15px;
}

.info-img img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  display: block;
}

.info-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between; 
}

.info-nombre {
  font-weight: bold;
  line-height: 1.2;
}

.info-profesion {
  font-size: 0.9em;
  color: var(--color-gray);
  line-height: 1.2;
}

.info-block-title-sec {
    width: 100%;
    font-family: "Playfair Display", serif;
    font-weight: 100 !important;
    font-size: 22px;
}

.info-block-descripcion {
    width: 100%;
    margin-top: 10px;
    font-weight: 300 !important;
    font-size: 16px;
    color: var(--color-gray);
    line-height: 1.5em;
}

.info-block-descripcion p {
  margin: 0;
}

.info-block-descripcion p + p {
  margin-top: 8px;
}

.info-block-descripcion strong,
.info-block-descripcion b {
  font-weight: 600;
}

.info-block-descripcion br + br {
  display: none;
}

.double-column {
    display: flex;
    gap: 0;
}

.column {
    display: flex;
}

.column-1 {
    flex: 0 0 33.33%;
    /*padding-right: 30px;*/
}

.column-2 {
    flex: 0 0 66.67%;
    /*padding-right: 30px;*/
}

.column-3 {
    flex: 0 0 33.33%;
    /*padding-right: 30px;*/
}

.column-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    /*min-height: 60px; */
}

.icon img {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.text-lines {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.line-top {
    margin-top: -3px;
    font-family: "Playfair Display", serif;
    font-weight: 100 !important;
    font-size: 16px;
}

.line-bottom {
    font-size: 14px;
    color: var(--color-gray);
    line-height: 1.7em;
}

.sec-titulo {
    font-family: "Playfair Display", serif;
    font-size: 16px;
    color: var(--color-black);
    margin-bottom: 10px;
}

.sec-descripcion {
    font-weight: 300 !important;
    font-size: 16px;
    line-height: 1.5em;
}

.sec-descripcion p {
  margin: 0;
}

.sec-descripcion p + p {
  margin-top: 8px;
}

.sec-descripcion strong,
.sec-descripcion b {
  font-weight: 600;
}

.sec-descripcion br + br {
  display: none;
}

.map-toggle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.map-label {
    font-family: "Playfair Display", serif;
    font-weight: 100 !important;
    font-size: 22px;
}

.map-toggle-icon {
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/*
.map-toggle-icon:hover {
    transform: scale(1.1);
}
*/

.map-toggle-icon.rotated {
  transform: rotate(180deg);
}


.mapa-container {
    margin-top: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: opacity 0.6s ease, max-height 0.6s ease, margin-top 0.6s ease;
}

.mapa-container.visible {
    margin-top: 20px;    
    max-height: 400px;
    opacity: 1;
}

.switch1 {
    display: none;
}

.mb-column {
    margin-bottom: 0px;
}


/* OTHER */

.product-container-title {
  padding: 0  var(--p20) 0 var(--p20);
  color: var(--color-black);
  text-align: left;
}

.product-container {
  padding: 0 0 var(--p40) 0;
  width: var(--w100);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--product-gap);
  /*background-color: rgba(224, 215, 199, 0.37) !important;*/
  gap: 40px;
  border: 0px solid green;
}

.product-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
  height: 100%;
}

.product-card:hover {
  /*transform: translateY(-3px);*/
}

.product-img {
  aspect-ratio: 4 / 3; /* Relación 0.75 */
  width: 100%;
  overflow: hidden;
  position: relative;
}

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

.product-info {
  padding: 30px 15px 15px 15px;
  text-align: right;
  flex: 1; 
  display: flex;
  flex-direction: column;
  /*
  flex: 1; 
  display: flex;
  flex-direction: column;
  justify-content: space-between;  
  */
}

.product-info h3 {
    text-align: left !important;
    font-family: "Playfair Display", serif;
    font-size: 24px;
    font-weight: 300;    
    margin-bottom: 8px;
    /*
    min-height: 58px; 
    line-height: 1.2em;    
    */
}

.product-info p {
    text-align: left !important;
    margin: 1px;
    font-size: 14px;
    font-weight: 400;
    color: var(--color-gray);
    line-height: 1.7em;
}

.product-info span {
    text-align: left; 
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 400;
    color: var(--color-gray);
    line-height: 1.7em;
}

.product-info .price {
    display: inline-block;  
    margin-top: auto;
    font-size: 20px;
    font-weight: 400;
    text-align: right;
    color: var(--color-black) !important;
    border-radius: 25px;
    background-color: var(--btn-price);
    padding: 6px 30px;  
    width: auto !important; 
    flex-shrink: 0 !important; 
    align-self: flex-end;
}


.product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  align-self: stretch;  
  
}

.product-card-link:hover {
  text-decoration: none;
}

.beige {
    background-color: rgba(224, 215, 199, 0.37) !important;
}

.alt-section {
  width: var(--w100);
  background-color: var(--white);
  padding: 0 var(--main-mid-padding); 
  box-sizing: border-box;
}

.alt-section-inner {
  display: flex;
  gap: 40px; 
  padding: var(--p80) var(--p20) var(--p80) var(--p20);
  margin: 0 auto;
  color: var(--color-black);
  text-align: left;
}

.alt-section-inner-title {
  display: flex;
  gap: 40px; 
  padding: var(--p80) var(--p20) 0 var(--p20);
  margin: 0 auto;
  color: var(--color-black);
  text-align: left;
} 

.product-alt-title {
    padding: 0;
}

/* Overlay y popup */
.popup-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    position: relative;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.popup-content h3 {
    margin:20px 0 30px 0;
    font-family: "Playfair Display", serif;
    font-weight: 300 !important;
    font-size: 16px;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
}

#booking-form input,
#booking-form textarea {
    width: 100%;
    /*margin-bottom: 12px;*/
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

#booking-form textarea {
    resize: vertical;
    min-height: 80px;
}

.popup-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.form-message {
    color: var(--color-error);
    font-size: 14px;
    flex: 1;
}

#submit-button {
    padding: 10px 30px;
    background-color:var(--btn-booking);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
}

#submit-button:hover {
    background-color: var(--btn-booking-hover);
}

#booking-form label {
    display: block;
    font-size: 10px;
    font-weight: 500;
    margin-bottom: 3px;
    margin-top: 15px;
}

#booking-form input.error,
#booking-form textarea.error {
    border-color: var(--color-error);
}




/* RESPONSIVE */
@media (max-width: 1024px) {
    .product-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    
    .carousel {
        display: none;
    }
    
    .carousel-mv {
        display: block;
        width: 100%;
        height: 468px;
        overflow: hidden;
        position: relative;
    }
    
    .carousel-mv-container {
        width: 100%;
        height: 100%;
        position: relative;
        overflow: hidden;
    }
    
    .carousel-mv-track {
        display: flex;
        width: 100%;
        height: 100%;
        transition: transform 0.5s ease-in-out;
    }
    
    .carousel-mv-slide {
        width: 100vw;
        height: 468px;
        flex-shrink: 0;
    }
    
    .carousel-mv-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .carousel-mv-button {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.6);
        border: none;
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 50%;
        cursor: pointer;
        z-index: 2;
    }
    
    .carousel-mv-button.prev { left: 10px; }
    .carousel-mv-button.next { right: 10px; }
    
    .carousel-mv-button img {
        width: 20px;
        height: 20px;
    }

    .main-section {
        width: var(--w100);
        padding: 0; 
        box-sizing: border-box;    
    }
    
    .section-inner {
        flex-direction: column;
        padding: 0 var(--p20) var(--p40) var(--p20);
        margin: 0 auto;
        text-align: center;
    }  
    
    .inner-main,
    .inner-sidebar {
        width: 100% !important;
        max-width: 100%;
        border: 0px solid green;
    }
    
    .inner-main {
        margin-top: 40px !important;
    }
    
    .inner-sidebar {
        margin-top: 30px; /* espacio entre ambos bloques */
    }
    
    .double-column,
    .column {
        flex-direction: column;
        width: 100%;
    }
    
    .double-column .column {
        /*margin-bottom: 20px;*/
    }
    
    .info-wrapper {
        flex-direction: row;
    }
    
    .info-img {
        margin-bottom: 0px;
    }
    
    .info-block-title,
    .info-block-location {
        text-align: left;
    }
    
    .info-text {
        text-align: left;
    }
    
    .info-block-title-sec,
    .info-block-descripcion {
        text-align: left;
    }
    
    .line-top,
    .line-bottom {
        text-align: left;
    }
    
    .info-block {
        padding: var(--p20);
    }
    
    .calendar-nav-next {
        padding: 0px 20px 0px 8px;
    }
    
    .calendar-nav-prev {
        padding: 4px 0px 4px 20px;
    }
    
    .detail-price {
        margin-top: 40px;
    }
    
    .switch1 {
        display: block;
    }
    
    .switch2 {
        display: none;
    }
    
    .mb-column {
        margin-bottom: 20px;
    }
    
    .product-container-title {
        padding: var(--p40) var(--p20) var(--p80) var(--p20);
    }
    
    .product-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .alt-section {
        width: var(--w100);
        padding: 0; 
        box-sizing: border-box;    
    }
    
    .alt-section-inner {
        flex-direction: column;
        padding: 0 20px 40px 20px;
        margin: 0 auto;
        text-align: center;
    }  
    
    .alt-section-inner-title {
        flex-direction: column;
        padding: 40px 20px 0 20px;
        margin: 0 auto;
        text-align: center;
    } 
    
    .product-alt-title {
        padding: var(--p40) 0 var(--p80) 0;
    }
    
    .popup-content {
        width: 90%;
        padding: 20px 20px 40px 20px;
    }

    .popup-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .form-message {
        margin-bottom: 10px;
        text-align: left;
    }

    #submit-button {
        width: 100%;
    }

    #booking-form input,
    #booking-form textarea {
        font-size: 14px;
        padding: 8px;
    }

    .popup-close {
        font-size: 20px;
        top: 5px;
        right: 10px;
    }
    
    .popup-content h3,
    #booking-form label {
        text-align: left;
    }
    
}

@media (max-width: 768px), (hover: none) {
  .back-link {
    justify-content: flex-start;
    margin-top: 0px;
    margin-left: 0;
    margin-right: auto;       
    text-align: left;
  }
  .back-link span {
    opacity: 1;
    max-width: 100px;         
  }
}

@media (max-width: 480px) {

    .calendar-nav-next {
        padding: 0px 10px 0px 0px;
    }
    
    .calendar-nav-prev {
        padding: 4px 0px 4px 10px;
    }
    
    .product-container {
        grid-template-columns: 1fr;
    }

}

