/* =========================================
   BASE COLORS & GLOBAL
   ========================================= */
:root {
  --rzz-blue: #6ECFEF;
  --rzz-blue-deep: #2A9EC6;
  --rzz-bg-light: #EAF8FF;
  --rzz-text-dark: #182430;
  --rzz-green: #25d366;
  --witro-header-offset: 0px;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--rzz-text-dark);
  padding-top: var(--witro-header-offset, 0px);
}

@media (max-width: 768px) {
  body {
    padding-top: var(--witro-header-offset, 0px);
  }
}

/* --------------------
 * Global WhatsApp CTA
 * -------------------- */
.whatsapp-cta {
  position: fixed;
  left: 16px;
  right: auto;
  bottom: 105px;
  transform: none;
  z-index: 200000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none; /* allow label/button to control clicks */
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  min-width: 54px;
  min-height: 54px;
  aspect-ratio: 1 / 1;
  gap: 0;
  padding: 0;
  border-radius: 50% !important;
  border: none !important;
  background: #fff !important;
  color: var(--rzz-green);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
}
.whatsapp-btn i {
  font-size: 20px;
  animation: phone-wiggle 1.8s ease-in-out infinite;
  transform-origin: center;
  color: var(--rzz-green);
  display: block;
  flex-shrink: 0;
}
.whatsapp-btn svg {
  width: 30px;
  height: 30px;
  color: var(--rzz-green);
  fill: currentColor;
  display: block;
  flex-shrink: 0;
}
.whatsapp-btn span {
  display: none;
}
.whatsapp-btn:hover {
  background: #000;
  filter: none;
}
.whatsapp-btn:hover i {
  color: #fff;
}
.whatsapp-btn:hover svg {
  color: #25d366;
}

.whatsapp-label {
  position: absolute;
  left: 64px;
  right: auto;
  top: 50%;
  padding: 6px 12px;
  background: #fff !important;
  color: var(--rzz-green) !important;
  border: none !important;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  pointer-events: auto;
  white-space: nowrap;
  transform: translateY(-50%);
  transform-origin: center;
  animation: label-pulse-slide 10s ease-in-out 1 forwards;
  animation-delay: 1.5s;
  transition: background 0.2s ease, color 0.2s ease;
}
.whatsapp-label:hover {
  background: #000;
  color: #fff !important;
}

.whatsapp-popup {
  position: absolute;
  left: 0;
  right: auto;
  bottom: calc(100% + 10px);
  transform: none;
  min-width: 240px;
  max-width: 320px;
  background: #fff;
  border: 1px solid rgba(37, 211, 102, 0.5);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
  padding: 12px;
  display: none;
  pointer-events: auto;
}
.whatsapp-popup.is-open {
  display: block;
  animation: slide-panel 0.25s ease forwards;
}

.whatsapp-popup .popup-text {
  margin: 0 0 10px 0;
  font-size: 13px;
  color: var(--rzz-text-dark);
  line-height: 1.5;
}

.whatsapp-popup a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--rzz-text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}
.whatsapp-popup a i {
  color: var(--rzz-green);
  font-size: 16px;
}
.whatsapp-popup a svg {
  width: 16px;
  height: 16px;
  color: var(--rzz-green);
  fill: currentColor;
}
.whatsapp-popup a:hover {
  background: rgba(37, 211, 102, 0.12);
}
.whatsapp-popup .popup-label {
  color: var(--rzz-text-dark);
  font-weight: 700;
}
.whatsapp-popup .popup-number {
  color: #555;
  font-size: 12px;
  font-weight: 600;
}

@keyframes phone-wiggle {
  0%   { transform: rotate(0deg); }
  10%  { transform: rotate(-12deg); }
  20%  { transform: rotate(12deg); }
  30%  { transform: rotate(-10deg); }
  40%  { transform: rotate(8deg); }
  50%  { transform: rotate(-6deg); }
  60%  { transform: rotate(4deg); }
  70%  { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

@keyframes slide-panel {
  0%   { transform: translate(105%, -50%); opacity: 0; }
  100% { transform: translate(0%, -50%); opacity: 1; }
}

@keyframes label-pulse-slide {
    0%    { transform: translateY(-50%) scale(0.95); opacity: 0; }
    15%   { transform: translateY(-50%) scale(1);    opacity: 1; }
    35%   { transform: translateY(-50%) scale(1.06); opacity: 1; }
    55%   { transform: translateY(-50%) scale(1);    opacity: 1; }
    85%   { transform: translateY(-50%) scale(1);    opacity: 1; }
    100%  { transform: translateY(-50%) scale(1);    opacity: 0; }
}

@media (max-width: 640px) {
  .whatsapp-cta {
    left: 12px;
    right: auto;
    bottom: 105px;
    top: auto;
    transform: none;
  }
  .whatsapp-label {
    left: 64px;
    right: auto;
  }
  .whatsapp-popup {
    width: min(320px, 92vw);
    left: 0;
    right: auto;
    top: auto;
    bottom: calc(100% + 8px);
    transform: none;
  }
}

/* --------------------
 * Mobile menu toggle visibility (iOS Safari fix)
 * -------------------- */
@media (max-width: 1024px) {
  .elementor-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 2147480000 !important; /* stay above all overlays */
    position: relative;
  }
  header,
  .elementor-location-header,
  .site-header {
    overflow: visible !important;
    position: relative;
    z-index: 2147480000 !important;
  }
}
@supports (-webkit-touch-callout: none) {
  .elementor-menu-toggle {
    display: flex !important;
  }
}

/* Explicit icon-based burger (prz-burger) */
.prz-burger {
  width: 140px;
  height: 140px;
  border: none;
  padding: 0;
  border-radius: 50%;
  background: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
}
.prz-burger span { display: none; }
.prz-burger::before {
  content: "";
  width: 700px;
  height: 700px;
  background: center/contain no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'><line x1='4' y1='7' x2='20' y2='7'/><line x1='4' y1='12' x2='20' y2='12'/><line x1='4' y1='17' x2='20' y2='17'/></svg>");
}

a {
  color: var(--rzz-blue);
}
a:hover {
  color: var(--rzz-blue-deep);
}

/* =========================================
   ARCHIVE ROOMS (for [rooms_tabs])
   ========================================= */

/* Body background for room archives */
body.post-type-archive-room,
body.post-type-archive-rooms {
  background: var(--rzz-bg-light);
}

/* Wrapper width + spacing for tabs/grid */
body.post-type-archive-room .rooms-tabs-wrapper,
body.post-type-archive-rooms .rooms-tabs-wrapper {
  width: min(100%, 1425px);
  margin: 150px auto 60px auto;
  padding-inline: clamp(24px, 5vw, 48px);
}

@media (max-width: 768px) {
  body.post-type-archive-room .rooms-tabs-wrapper,
  body.post-type-archive-rooms .rooms-tabs-wrapper {
    margin-top: 145px; /* push content down on mobile */
  }
}

/* --------------------
 * Tab Buttons
 * -------------------- */
.rooms-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.rooms-tabs .rooms-tab {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 999px;
  border: 1px solid var(--rzz-blue);
  background: #ffffff;
  color: var(--rzz-blue);
  padding: 8px 26px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.03em;
  text-transform: capitalize;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.rooms-tabs .rooms-tab:first-child {
  text-transform: uppercase; /* ALL */
}

.rooms-tabs .rooms-tab.active {
  background: var(--rzz-blue);
  color: #ffffff;
  border-color: var(--rzz-blue);
  box-shadow: 0 12px 30px rgba(110, 207, 239, 0.4);
}

.rooms-tabs .rooms-tab:not(.active):hover {
  background: rgba(110, 207, 239, 0.08);
}

@media (max-width: 600px) {
  .rooms-tabs {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 12px;
    padding-bottom: 4px;
    margin-bottom: 16px;
  }

  .rooms-tabs .rooms-tab {
    padding: 7px 16px;
    font-size: 13px;
    flex: 1 1 calc(50% - 12px);
    text-align: center;
  }
}

/* --------------------
 * Sort Select
 * -------------------- */
.rooms-sort {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.rooms-sort-select-wrap {
  position: relative;
}

.rooms-sort select.rooms-sort-select {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 999px;
  border: 1px solid var(--rzz-blue);
  background-color: #ffffff;
  color: var(--rzz-blue);
  padding: 6px 36px 6px 18px;
  font-size: 13px;
  cursor: pointer;
  outline: none;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--rzz-blue) 50%),
    linear-gradient(-45deg, transparent 50%, var(--rzz-blue) 50%);
  background-position:
    calc(100% - 16px) 55%,
    calc(100% - 11px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.rooms-sort select.rooms-sort-select.rooms-sort-select--active {
  background-color: var(--rzz-blue);
  color: #ffffff;
  border-color: var(--rzz-blue);
  box-shadow: 0 10px 24px rgba(110, 207, 239, 0.4);
  background-image:
    linear-gradient(45deg, transparent 50%, #ffffff 50%),
    linear-gradient(-45deg, transparent 50%, #ffffff 50%);
}

@media (max-width: 600px) {
  .rooms-sort {
    justify-content: flex-start;
    margin-bottom: 16px;
  }
  .rooms-sort,
  .rooms-sort-select-wrap,
  .rooms-sort select.rooms-sort-select {
    width: 100%;
  }
}

/* --------------------
 * Room Cards Grid
 * -------------------- */
html body .rooms-tabs-wrapper .rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 1200px) {
  html body .rooms-tabs-wrapper .rooms-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  html body .rooms-tabs-wrapper .rooms-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  html body .rooms-tabs-wrapper .rooms-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 18px;
  }
}

/* --------------------
 * Room Card (used in rooms tabs & suggestions)
 * -------------------- */
.room-card,
.rooms-tabs-wrapper .room-card {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  background: #000;
  isolation: isolate;
  border-radius: 24px !important;
  overflow: hidden !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 3 / 4 !important; /* portrait-ish ratio (vertical) */
}

.room-card:hover,
.rooms-tabs-wrapper .room-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.room-card__cover-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  text-decoration: none;
}

.room-card-img {
  position: absolute;
  inset: 0;
}

.room-card-img img {
  display: block;
  width: 100%;
  height: 100% !important; /* override generic elementor img height */
  object-fit: cover;
}

.room-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  color: #fff;
  pointer-events: none;
}
.room-card-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.25) 48%, rgba(0, 0, 0, 0) 100%);
  z-index: 0;
}

.room-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1.4;
  padding-inline: 8px;
  max-height: 2.8em;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

@media (max-width: 600px) {
  .room-card-title {
    font-size: 15px;
  }
}

@media (max-width: 600px) {
  .room-card,
  .rooms-tabs-wrapper .room-card {
    aspect-ratio: 3 / 4 !important; /* single-column mobile */
    min-height: 0;
  }
  .room-card-overlay {
    padding: 14px 14px 16px;
  }
  .room-card-overlay::before {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.18) 45%, rgba(0, 0, 0, 0) 100%);
  }
}

@media (max-width: 768px) {
  .rooms-tabs-wrapper .room-card {
    aspect-ratio: 3 / 4 !important; /* keep cards vertical on mobile/tablet */
  }
  .room-card-overlay {
    padding: 10px 12px 14px;
  }
  .room-card-overlay::before {
    inset: auto 0 0 0;
    height: 60%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.75) 100%);
  }
  .room-card-badge,
  .room-info-row {
    display: none;
  }
  .room-card-title {
    font-size: 15px;
  }
}

.room-book-pill {
  position: relative;
  z-index: 3;
  pointer-events: auto;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 21px;
  border-radius: 999px;
  border: none;
  background: var(--rzz-blue);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
  box-shadow: 0 10px 24px rgba(110, 207, 239, 0.45);
}

.room-book-pill::before,
.room-book-pill::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 64px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
}
.room-book-pill::before {
  right: 100%;
  margin-right: 14px;
}
.room-book-pill::after {
  left: 100%;
  margin-left: 14px;
}

.room-book-pill.room-book-pill--disabled {
  opacity: 0.55;
  box-shadow: none;
}

.room-info-row {
  position: relative;
  z-index: 3;
  pointer-events: auto;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0.01em;
  color: #fff;
  padding: 0 8px;
  background: transparent;
}

.room-info-item {
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.room-amenities {
  margin-top: 4px;
  font-size: 12px;
  text-align: center;
  color: rgba(24, 36, 48, 0.70);
  padding-inline: 10px;
}

.room-details-gallery {
  margin-top: 32px;
  padding: 18px 20px 20px;
  border-radius: 20px;
  background: #E0F6FF;
  border: 1px solid rgba(110, 207, 239, 0.45);
}

.room-details-gallery-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--rzz-blue-deep);
  margin-bottom: 10px;
}

.room-details-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.room-details-gallery-grid .room-gallery-item {
  display: block;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--rzz-blue);
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.room-details-gallery-grid .room-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-details-gallery-grid .room-gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

/* =======================================================
 * GLOBAL STYLES & FONT ICONS
 * ======================================================= */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

.room-single-page {
    padding-bottom: 140px; }
.room-single-page h1, 
.room-single-page h2 {
    color: #000;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 700;
}
.room-single-page h2 {
    font-size: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* =======================================================
 * SECTION 1: HERO IMAGE (MOBILE OPTIMIZED)
 * ======================================================= */
.room-hero-image {
    position: relative;
    width: 100%;
    height: 350px; overflow: hidden;
}

.main-room-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =======================================================
 * SECTION 2: MAIN INFO CARD (SIMILAR TO IMAGE DESIGN)
 * ======================================================= */
.room-details-card {
    background-color: #fff;
    border-radius: 25px 25px 0 0; box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-top: -50px; position: relative;
    z-index: 10;
}

/* HEADER AND PRICE LAYOUT */
.room-details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 15px;
}

.room-title {
    font-size: 24px;
    line-height: 1.2;
    margin: 0;
    width: 70%;
}

.room-price {
    width: 30%;
    text-align: right;
    line-height: 1.1;
}

.price-value {
    font-size: 28px;
    font-weight: 900;
    color: #000;
    display: block;
}

.price-unit {
    font-size: 14px;
    color: #666;
}

/* META TAGS (SIZE AND TYPE) */
.room-meta-tags {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    color: #6ecfef;
}
.meta-item {
    font-size: 14px;
    font-weight: 600;
    background-color: rgba(110, 207, 239, 0.1); padding: 5px 10px;
    border-radius: 15px;
}
.meta-item i {
    margin-left: 5px;
}

/* AMENITIES GRID */
/* (amenities styles removed per request) */

/* DESCRIPTION */
.description-section {
    padding-top: 15px;
    color: #444;
    line-height: 1.6;
}

/* =======================================================
 * SECTION 3: FIXED BOOKING BAR
 * ======================================================= */
.room-booking-fixed-bar {
    position: fixed;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
    left: 0;
    right: 0;
    background-color: #fff;
    padding: 15px 25px calc(15px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 150000;
}

.total-price-info {
    line-height: 1.2;
}

.total-amount {
    font-size: 18px;
    font-weight: 700;
    display: block;
    color: #000;
}

.total-details {
    font-size: 12px;
    color: #999;
}

.book-now-button {
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s;
}

.book-now-button:hover {
    background-color: #333;
}

/* =======================================================
 * DESKTOP RESPONSIVENESS (BREAKPOINT ~768px)
 * ======================================================= */
@media (min-width: 768px) {
    .room-single-page {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .room-hero-image {
        height: 500px;
        border-radius: 0 0 25px 25px;
    }

    .room-details-card {
        width: 100%; max-width: 1000px;
        padding: 40px;
        margin-top: -150px; border-radius: 25px; }

    .room-details-header {
        margin-bottom: 25px;
    }

    .room-title {
        font-size: 32px;
    }

    .price-value {
        font-size: 36px;
    }

    .room-amenities-grid {
        gap: 15px; 
    }

    .room-booking-fixed-bar {
        position: static; margin-top: 40px;
        padding: 20px 40px;
        border-radius: 15px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        width: 100%;
        max-width: 1000px;
    }
}

@media (max-width: 768px) {
    /* (amenities responsive override removed) */
}
