/* ========================================
GLOBAL
======================================== */

/* ===== GLOBAL FONT ===== */

body{
  font-family: Arial, Helvetica, sans-serif;
}

/* ===== GLOBAL DESKTOP TEXT STANDARD ===== */
@media (min-width:769px){

  body{
    font-size:16px;
  }

  .page-container,
  .page{
    font-size:16px;
  }

  .page-container p,
  .page-container li,
  .page p,
  .page li,
  .page label,
  .page-container label{
    font-size:16px;
    line-height:1.5;
  }

  .page h2,
  .page-container h2{
    font-size:24px;
  }

  .page input,
  .page select,
  .page textarea,
  .page-container input,
  .page-container select,
  .page-container textarea{
    font-size:16px;
  }

}

/* Reservation form action buttons — desktop */
@media (min-width:769px){
  .page .actions .btn,
  .page .actions .ghost{
    font-size:16px;
    font-weight:600;
  }
}

/* ===== GLOBAL LAYOUT SAFETY ===== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body{
  width:100%;
  margin:0;
  padding:0;
  overflow-x:hidden;
}

/* ========================================
NAVBAR
======================================== */

#navbar-search{
  height:28px;
  line-height:40px;
  padding:0 12px;
  border-radius:5px;
  border:1px solid #cfcfcf;
  outline:none !important;
  box-shadow:none !important;
  background:white;
  -webkit-appearance:none;
  appearance:none;
}

#navbar-search:focus,
#navbar-search:focus-visible{
  outline:none;
  border:1px solid #cfcfcf;
  box-shadow:none;
}

.logo-img{
  width:120px;
  height:36px;
  object-fit:contain;
  display:block;
}

.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
}

.navbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:#1e5998;
  padding:3px 0;
  width:100%;
}

.links-wrap{
  position:relative;
  display:flex;
  align-items:center;
  margin-left:-40px;
}

.links{
  display:flex;
  gap:38px;
  align-items:center;
  justify-content:flex-start;
  overflow-x:auto;
  white-space:nowrap;
  margin-left:6px;
  scroll-behavior:smooth;
}

.links::-webkit-scrollbar{
  display:none;
}

.nav-arrow{
  position:relative;
  top:auto;
  transform:none;
  width:22px;
  height:22px;
  margin:0 2px;
  border:none;
  border-radius:50%;
  background:rgba(0,0,0,.1);
  color:#00d5ff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  opacity:0;
  transition:opacity .25s ease, transform .2s ease;
}

.links-wrap:hover .nav-arrow{
  opacity:1;
}

input:focus-visible{
  outline:none !important;
}

#navAvatar{
  display:flex;
  align-items:center;
  justify-content:center;
  margin-left:10px;
}

#navAvatar img{
  width:32px;
  height:32px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid white;
}

.right{
  display:flex;
  align-items:center;
  gap:10px;
  margin-right:20px;
}

.search{
  display:flex;
  align-items:center;
}

/* ===== NAV ACTIVE BUTTON ===== */

.links a{
  color:white;
  text-decoration:none;
  font-weight:600;
  font-size:13px;

  padding:6px 12px;
  border-radius:10px;

  border:2px solid transparent;

  transition:all .25s ease;
}

.links a:hover{
  background:rgba(255,255,255,0.15);
}

.links a.active{
  border:2px solid white;
  background:rgba(255,255,255,0.1);
}

#navbar-container{
  width:100%;
}

.nav-arrow:hover{
  transform:scale(1.1);
}

.links{
  scrollbar-width:none;
}


/* ========================================
PAGE CONTAINER
======================================== */

.page-container{
margin:0 auto;
max-width:1480px;
padding:40px 20px;
line-height:1.7;
}

.page-container h2{
margin-top:40px;
}

.page-container p{
margin-bottom:16px;
}

/* ========================================
PAGE HERO (GLOBAL PAGE BACKGROUND)
======================================== */

.page-hero{
width:100vw;
height:clamp(220px,18vw,340px);

display:flex;
align-items:center;
justify-content:center;
text-align:center;

position:relative;

margin-left:calc(-50vw + 50%);

color:white;
overflow:hidden;
}

/* background image */

.page-hero::before{
content:"";
position:absolute;
inset:0;

background-image:url("../assets/page-default-bg.jpg");

background-size:cover;
background-position:center;
background-repeat:no-repeat;

z-index:0;
}

/* overlay for readability */

.page-hero::after{
content:"";
position:absolute;
inset:0;

background:rgba(0,0,0,0.40);

z-index:1;
}

/* title */

.page-hero h1{
position:relative;
z-index:2;

font-size:42px;
font-weight:700;
letter-spacing:1px;
margin:0;

color:#ffffff;

text-shadow:
0 3px 6px rgba(0,0,0,0.6),
0 0 12px rgba(0,0,0,0.25);
}

/* ========================================
PAGE HERO BACKGROUNDS (PER PAGE)
======================================== */

.hero-home::before{
background-image:url("/assets/bg-index.jpg");
}

.hero-about::before{
background-image:url("../assets/bg-about.jpg");
}

.hero-services::before{
background-image:url("../assets/bg-services.jpg");
}

.hero-pricing::before{
background-image:url("../assets/bg-pricing.jpg");
}

.hero-reservation::before{
background-image:url("../assets/bg-reservation.jpg");
}

.hero-gallery::before{
background-image:url("../assets/bg-gallery.jpg");
}

.hero-leaders::before{
background-image:url("../assets/bg-leaders.jpg");
}

.hero-rules::before{
background-image:url("../assets/bg-rules.jpg");
}

.hero-contact::before{
background-image:url("../assets/bg-contact.jpg");
}

.hero-join::before{
background-image:url("../assets/bg-join.jpg");
}

/* Join Application phone hero only */
@media (max-width:768px){

  .hero-application{
    height:140px !important;
    min-height:140px !important;
  }

  .hero-application h1{
    font-size:22px !important;
    line-height:1.1 !important;
    margin-bottom:4px !important;
    margin-top:0 !important;
  }

  .hero-application + .page-container{
    padding-top:0 !important;
    margin-top:20px !important;
  }

}

/* Join Application2 phone hero only */
@media (max-width:768px){

  .hero-application2{
    height:140px !important;
    min-height:140px !important;
  }

  .hero-application2 h1{
    font-size:22px !important;
    line-height:1.1 !important;
    margin-bottom:4px !important;
    margin-top:0 !important;
  }

  .hero-application2 + .page-container{
    padding-top:0 !important;
    margin-top:20px !important;
  }

}

/* ========================================
PROFILE HEADER
======================================== */

.profile-header{
width:100%;
margin-top:0;
}   

/* COVER BG */

.profile-cover{
width:100vw;
height:clamp(180px, 20vw, 260px);
position:relative;
display:flex;
align-items:center;
justify-content:center;

background-image:url("../assets/profile-cover.jpg");
background-size:cover;
background-position:center;
background-repeat:no-repeat;

margin-left:calc(-50vw + 50%);
margin-top:-2px;
}

.cover-edit-btn{
position:absolute;
top:10px;
left:10px;

width:32px;
height:32px;

border-radius:50%;
border:none;

background:rgba(0,0,0,0.45);
color:white;

font-size:16px;
cursor:pointer;

display:flex;
align-items:center;
justify-content:center;

backdrop-filter:blur(3px);
opacity:0;
}

/* PROFILE PHOTO */

.profile-photo-wrapper{
position:absolute;
bottom:-60px;
left:50%;
transform:translateX(-50%);
display:flex;
justify-content:center;
align-items:center;
}

.profile-photo{
width:clamp(110px, 10vw, 170px);
height:clamp(110px, 10vw, 170px);
border-radius:50%;

background-image:url("../assets/default-avatar.png");
border:5px solid #0c5db6;

display:flex;
align-items:center;
justify-content:center;

color:white;
font-size:14px;
text-align:center;

/* ADD THESE */
background-size:cover;
background-position:center;
background-repeat:no-repeat;
overflow:hidden;
}

.profile-edit-btn{
position:absolute;
top:6px;
right:6px;

width:28px;
height:28px;

border-radius:50%;
border:none;

background:rgba(0,0,0,0.45);
color:white;

font-size:14px;
cursor:pointer;

display:flex;
align-items:center;
justify-content:center;

backdrop-filter:blur(3px);
opacity:0;
}

/* Pencil hover effect */

.cover-edit-btn:hover,
.profile-edit-btn:hover{

background:rgba(0,0,0,0.65);

transform:scale(1.08);

box-shadow:0 0 8px rgba(0,0,0,0.35);

transition:all .2s ease;
}

.profile-cover:hover .cover-edit-btn{
opacity:1;
}

/* Show profile pencil only when hovering profile photo */

.profile-photo-wrapper:hover .profile-edit-btn{
opacity:1;
}

/* ========================================
IMAGE CROPPER
======================================== */

.cropper-view-box{
  outline:3px solid #12a8ff !important;
}

.cropper-dashed{
  border-color:#12a8ff !important;
}

/* ========================================
PROFILE LAYOUT
======================================== */

/* INFO SECTION */

.profile-info{
display:grid;
grid-template-columns: 540px 320px;
grid-template-areas:
"nav nav"
"name rating";
column-gap:40px;
align-items:start;
max-width:900px;
margin:0 auto;
}

.profile-nav{
grid-area:nav;

display:flex;
justify-content:space-between;
align-items:center;

width:100vw;
margin-left:calc(-50vw + 50%);
padding:0 60px;
}

.profile-name{
grid-area:name;
margin-left:80px;
}

.member-rating{
grid-area:rating;
margin-top:10px;
justify-self:end;
transform:translateX(20px);

max-width:420px;
margin-bottom:30px;
padding:18px 20px;
background:#f8f8f8;
border:1px solid #ddd;
border-radius:12px;
}

.profile-name h2{
margin-top:10px;
font-size:28px;
}

.member-id{
color:#1e88e5;
font-weight:600;
margin-top:6px;
}

.private-info p::before{
color:red;
font-weight:bold;
}

.req{
color:red;
font-weight:bold;
margin-right:4px;
}

.public-note{
color:red;
font-size:13px;
margin-top:4px;
}

.private-info{
margin-top:10px;
font-size:14px;
}

.profile-title{
display:flex;
align-items:center;
gap:10px;
}

.name-edit{
font-size:18px;
cursor:pointer;
color:#333;
}

.name-edit:hover{
color:#0c5db6;
}

/* ========================================
BIO
======================================== */

/* BIO */

.bio-section{
margin-top:10px;
}

.bio-title{
font-size:20px;
margin:0 0 8px 0;
}

.profile-bio{
border:1px solid #aaa;
padding:14px;
min-height:100px;
}

.bio-actions{
display:flex;
justify-content:flex-end;
margin-top:10px;
}

.bio-content{
min-height:40px;
padding:6px 4px;
outline:none;
border:none;
box-shadow:none;
}

.bio-content:focus{
outline:none;
border:none;
box-shadow:none;
}

.bio-edit-btn{
cursor:pointer;
}

.bio-header{
display:flex;
align-items:center;
gap:12px;
margin-top:-25px;
margin-bottom:10px;
}

.bio-title{
font-weight:600;
font-size:18px;
}

.bio-text[contenteditable="true"]{

border:1px solid #666;     /* thinner + lighter border */
border-radius:6px;

padding:8px 10px;         /* space for typing text */

min-height:34px;

background:#fff;

outline:none;

caret-color:#111;         /* visible typing cursor */

}

/* ========================================
EXPERTISE + CALENDAR
======================================== */

/* ========================================
EXPERTISE + CALENDAR LAYOUT
======================================== */

.profile-expertise-calendar{
display:flex;
align-items:flex-start;
justify-content:space-between;
margin-top:40px;
max-width:1200px;
}

.profile-calendar{
width:420px;
}

/* MOBILE STACK */

@media(max-width:768px){
.profile-expertise-calendar{
flex-direction:column;
}
}

/* EXPERTISE */

.profile-expertise{
min-width:260px;
}

.expertise-row{
display:flex;
justify-content:space-between;
margin-bottom:8px;
}

.expertise-row.header{
font-weight:bold;
margin-bottom:14px;
}

.team-row{
margin-top:20px;
}

/* ========================================
CALENDAR
======================================== */

/* CALENDAR */

.profile-calendar{
text-align:left;
margin-top:0;
align-self:flex-start;
}

.calendar-placeholder{
border:1px solid #ccc;
height:220px;
display:flex;
align-items:center;
justify-content:center;
background:#f9f9f9;
}

.calendar-header{
display:flex;
align-items:center;
justify-content:flex-start;
gap:12px;

margin-top:-28px;
}

.calendar-arrow{
font-size:22px;
cursor:pointer;
color:#169fe6;
}

.calendar-weekdays{
display:grid;
grid-template-columns:repeat(7,1fr);
width:420px;
margin-bottom:6px;
font-weight:600;
color:#555;
}

.calendar-weekdays div{
text-align:center;
font-size:18px;
}

#calendarGrid{
display:grid;

grid-template-columns:repeat(7,1fr);

border:2px solid #bbb;

width:420px;          /* larger calendar */
}

.calendar-day:hover:not(.calendar-served){
background:#f1f7ff;
}

.calendar-today{
outline:3px solid #169fe6;
outline-offset:-3px;
}

.calendar-served{
background:#ffc096;
color:#000;
border:1px solid #ddd;
}

.calendar-range-start{
border-radius:0;
}

.calendar-range-end{
border-radius:0;
}

.calendar-date-num{
position:relative;
z-index:2;
}

.calendar-day{
border:1px solid #ddd;
height:58px;
display:flex;
align-items:center;
justify-content:center;
cursor:pointer;
font-size:18px;
font-weight:500;
position:relative;
}

.calendar-note-top{
font-size:12px;
font-weight:600;
line-height:1.1;
margin-top:2px;
}

.calendar-date-num{
font-size:20px;
font-weight:600;
}

.calendar-note-bottom{
font-size:11px;
line-height:1;
margin-bottom:2px;
}

.calendar-note-top{
position:absolute;
top:4px;
left:4px;
right:4px;
font-size:11px;
font-weight:400;
text-align:center;
color:#333;
pointer-events:none;
}

.calendar-note-bottom{
position:absolute;
bottom:3px;
left:4px;
right:4px;
font-size:10px;
text-align:center;
color:#333;
pointer-events:none;
}


/* ========================================
GALLERY
======================================== */

/* GALLERY */

.profile-gallery{
margin-top:40px;
}

.gallery-header{
display:flex;
align-items:center;
gap:10px;
margin-bottom:20px;
}

.add-photo-btn{
width:60px;
height:60px;
border:2px solid #333;
display:flex;
align-items:center;
justify-content:center;
font-size:30px;
cursor:pointer;
}

.add-photo-text{
color:red;
font-size:14px;
}

.gallery-grid{
display:flex;
flex-wrap:wrap;
gap:20px;
}

.gallery-grid img{
width:160px;
height:220px;
object-fit:cover;
}

/* ===============================
GALLERY MEDIA CARD
=============================== */

.gallery-card{
  position:relative;
  width:160px;
  height:220px;
  overflow:hidden;
}

.gallery-card img,
.gallery-card video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.media-delete{
  position:absolute;
  bottom:6px;
  right:6px;
  background:rgba(0,0,0,.6);
  color:white;
  font-size:12px;
  width:20px;
  height:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:3px;
  cursor:pointer;
}

.gallery-card.removing{
  opacity:0;
  transform:scale(0.9);
  transition:all .25s ease;
}


/* ========================================
CONFIRMATIONS
======================================== */

/* CONFIRMATIONS */

.profile-confirmations{
margin-top:60px;
}

.confirm-box{
border:2px solid #333;
padding:30px;
max-width:900px;
margin:auto;
}


/* ========================================
SERVICE LIST
======================================== */

.service-list{
border:1px solid #bdbdbd;
max-height:240px;
overflow-y:auto;
}

.service-row{
display:grid;
grid-template-columns:220px 200px 1fr 240px;
padding:8px 10px;
}

.service-row:nth-child(odd){
background:#efefef;
}

/* SERVICE LISTINGS */

.profile-services{
margin-top:25px;
max-width:1000px;
margin-left:auto;
margin-right:auto;
}

.service-dropdown{
display:block;
width:100%;
max-width:750px;

background:#b77a55;
color:#000;

text-align:center;
padding:12px;

border-radius:25px;
text-decoration:none;

font-weight:600;

margin-top:8px;
transition:0.2s;
}

.service-dropdown:hover{
background:#a96c48;
}

/* ========================================
MODAL / OVERLAY
======================================== */

body.modal-open{
overflow:hidden;
position:fixed;
width:100%;
}

html.modal-open{
overflow:hidden;
}

/* ========================================
MEMBER RATING
======================================== */

.rating-title{
font-weight:600;
margin-bottom:10px;
}

.rating-row{
display:flex;
align-items:center;
justify-content:space-between;
margin-bottom:3px;
font-size:14px;
}

.rating-row:first-of-type{
margin-top:20px;
}

.rating-stars span{
cursor:pointer;
font-size:20px;
color:#999;
transition:color .2s;
}

.rating-stars span:hover{
color:#f4b400;
}

.rating-summary{
margin-top:8px;
font-size:14px;
color:#555;
}


/* ========================================
FOOTER
======================================== */

/* ===== FOOTER ===== */

.site-footer{
  border-top:1px solid #ddd;
  padding:40px 20px;
  text-align:center;
  background:#f7f7f7;
}

.footer-copy{
  font-size:13px;
  margin-bottom:10px;
  color:#555;
}

.footer-tagline{
  font-size:16px;
  color:#555;
}

/* ========================================
WELCOME MODAL
======================================== */

.welcome-modal{
position:relative;
margin:40px auto;
max-width:900px;
}

.welcome-box{
border:2px solid #c9c9c9;
padding:24px;
background:#fff;
position:relative;
max-width:650px;
margin:auto;
}

.welcome-box h2{
font-size:26px;
margin-bottom:12px;
}

.welcome-box p{
font-size:16px;
line-height:1.7;
margin-bottom:20px;
color:#444;
}

.welcome-box p.welcome-alert{
color:#ff6a00;
font-weight:600;
}

.welcome-close{
position:absolute;
right:20px;
top:15px;
font-size:28px;
cursor:pointer;
color:#666;
}

.welcome-btn{
background:#3b97d3;
color:#fff;
border:none;
padding:8px 20px;
border-radius:20px;
cursor:pointer;
font-size:14px;
}

/* ========================================
CREW CONFIRMATIONS
======================================== */

.crew-confirmations{
margin:30px auto;
width:720px;
max-width:90%;
border:4px solid #e09b19;
border-radius:24px;
padding:30px;
background:#f3e7d7;

max-height:80vh;
overflow-y:auto;
}


/* ========================================
CONFIRM CARD
======================================== */

.confirm-card{
background:#fff;
border-radius:14px;
padding:18px;
margin-bottom:25px;
box-shadow:0 2px 4px rgba(0,0,0,0.15);
}

.confirm-header{
font-size:20px;
font-weight:700;
margin-bottom:20px;
display:flex;
align-items:center;
justify-content:space-between;
gap:12px;
}

.bell{
font-size:28px;
}

.confirm-body p{
font-size:15px;
margin:10px 0;
}

.confirm-row{
display:flex;
justify-content:space-between;
margin-bottom:15px;
font-size:17px;
}

.details-btn{
color:#1e5fae;
cursor:pointer;
font-weight:600;
margin-left:auto;
font-size:14px;
}


/* ========================================
BUTTONS
======================================== */

.confirm-actions{
display:flex;
align-items:center;
gap:24px;
margin-top:18px;
}

.btn-accept{
background:linear-gradient(#4da3df,#2d89c9);
color:#fff;
border:none;
padding:8px 24px;
border-radius:26px;
font-size:15px;
font-weight:600;
cursor:pointer;
box-shadow:0 2px 3px rgba(0,0,0,0.2);
}

.btn-decline{
background:#e6e6e6;
border:2px solid #c8c8c8;
padding:7px 22px;
border-radius:26px;
font-size:15px;
cursor:pointer;
color:#333;
}

.btn-save{
margin-left:auto;
font-size:18px;
color:#1e5fae;
cursor:pointer;
}

/* CONFIRMATION MODAL */

.confirm-modal{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.45);
display:flex;
align-items:center;
justify-content:center;
z-index:9999;

  overflow-y:auto;   /* ADD */
  padding:40px 0;    /* ADD */
}

.confirm-modal.hidden{
display:none;
}

.home-main-grid{
  display:grid;
  grid-template-columns:5fr 3fr;
  gap:30px;
  align-items:start;
}

/* ========================================
HOMEPAGE RESPONSIVE
======================================== */

@media (max-width:768px){

/*   .home-main-grid{
    grid-template-columns:1fr !important;
  } */

}

@media (max-width:768px){

  .links{
    gap:10px !important;
    margin-left:0 !important;
  }

  .links a{
    font-size:11px !important;
    padding:4px 6px !important;
  }

/*   .page-hero{
      height:320px !important;
  } */

  .right{
    display:flex !important;
    gap:4px !important;
    margin-right:4px !important;
  }

  .search{
    display:flex !important;
    align-items:center;
  }

  #navbar-search{
    display:none !important;
  }

  .nav-search-wrap{
    width:20px !important;
    min-width:20px !important;
    overflow:hidden !important;
  }

  .nav-search-wrap::before{
    content:"🔍";
    display:block;
    width:20px;
    text-align:center;
    color:white;
    font-size:16px;
  }
  .nav-search-wrap input,
  #navbar-search{
    display:none !important;
    width:0 !important;
    min-width:0 !important;
    padding:0 !important;
    border:none !important;
  }

    .links-wrap{
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch;
  }

  .links{
    overflow-x:auto !important;
    overflow-y:hidden !important;
    touch-action:pan-x;
    -webkit-overflow-scrolling:touch;
  }

  .logo-img{
    width:50px !important;
    height:20px !important;
  }

  .brand{
    margin-right:0 !important;
    flex-shrink:0;
  }

  .links-wrap{
   /* flex:0 1 auto;
    min-width:0;*/
    margin-left:-18px !important;
  }

  .navbar{
    padding:4px 6px !important;
  }

  .brand{
  margin-right:-12px !important;
  margin-left:-14px !important;
  flex-shrink:0;
}

/* Home phone hero only */
.hero-home{
  height:140px !important;
}

.hero-home h1{
  font-size:18px !important;
  line-height:1.1 !important;
  margin-bottom:4px !important;
}

.hero-home .hero-tagline{
  font-size:10px !important;
  line-height:1.25 !important;
  top:60% !important;
  width:95% !important;
}

/* Home phone Join button only */
.page-container > section:first-of-type{
  padding:2px 0 8px 0 !important;
  margin-top:-35px !important;
}

.page-container > section:first-of-type a{
  padding:6px 30px !important;   /* button width/height */
  font-size:13px !important;     /* text size */
  border-radius:7px !important;  /* corner roundness */
}

.page-container > section:nth-of-type(2){
  font-size:10px !important;
}

.page-container > section:nth-of-type(2){
  padding:6px 12px !important;
}

.page-container > section:nth-of-type(2) h2,
.page-container > section:nth-of-type(2) h3{
  font-size:12px !important;
  line-height:1.4 !important;
  margin:0 !important;
}

.home-main-grid{
  gap:8px !important;
}

.home-main-grid{
  zoom:1;
  margin-left:-10px !important;
  margin-right:-10px !important;
}

.home-main-grid h2{
  font-size:22px !important;
  margin:0 0 14px 0 !important;
  line-height:1.3 !important;
}

.home-main-grid h3{
  font-size:18px !important;
}

.home-main-grid p,
.home-main-grid li{
  font-size:13px !important;
  line-height:1.45 !important;
}

.home-main-grid ul{
  padding-left:14px !important;
}

.home-main-grid > div:first-child{
  padding:12px !important;
}

.home-main-grid p,
.home-main-grid li{
  margin-left:0 !important;
  margin-right:0 !important;
}

.site-footer{
  padding:18px 12px !important;
}

.footer-copy{
  font-size:11px !important;
  margin-bottom:4px !important;
}

.footer-tagline{
  font-size:12px !important;
  line-height:1.3 !important;
}

#footer-container{
  padding:18px 12px !important;
}


/* About phone hero only */
.hero-about{
  height:140px !important;
}

.hero-about h1{
  font-size:22px !important;
  line-height:1.1 !important;
  margin-bottom:4px !important;
}

.hero-about .hero-tagline{
  font-size:10px !important;
  line-height:1.25 !important;
  top:60% !important;
  width:95% !important;
}

.hero-about + .page-container > section:first-child{
  display:block !important;
  margin-top:-20px !important;
}

.about-card{
  padding:12px !important;
}

.about-card .muted{
  font-size:13px !important;
  line-height:1.45 !important;
  margin:0 0 12px 0 !important;
}

.about-photos-mobile{
  float:right;
  width:145px;
  margin:0 0 10px 12px;
}

.about-photos-mobile img{
  width:100% !important;
  display:block;
  border-radius:12px;
  margin-bottom:12px;
}

.about-photos{
  display:none !important;
}

.about-photos-mobile{
  display:block !important;
}

/* Services phone hero only */
.hero-services{
  height:140px !important;
}

.hero-services h1{
  font-size:22px !important;
  line-height:1.1 !important;
  margin-bottom:4px !important;
}

.hero-services .hero-tagline{
  font-size:10px !important;
  line-height:1.25 !important;
  top:60% !important;
  width:95% !important;
}

/* Use About/Home background on phone only */
.hero-services::before{
  background-image:url("../assets/bg-services.jpg") !important;
}

.hero-services + .page-container section:first-child{
  margin-top:-120px !important;
}

.services-right .muted{
  font-size:13px !important;
  line-height:1.45 !important;
}

.services-right li{
  font-size:13px !important;
  line-height:1.45 !important;
}

.services-right h2{
  font-size:22px !important;
  line-height:1.3 !important;
}

.cta{
  padding:10px 24px !important;
  font-size:13px !important;
  border-radius:10px !important;
}

}
.about-photos-mobile{
  display:none;
}

/* Rules phone hero only */
@media (max-width:768px){

  .hero-rules{
    height:140px !important;
    min-height:140px !important;
    border:none !important;
  }

  .hero-rules h1{
    font-size:22px !important;
    line-height:1.1 !important;
    margin-bottom:4px !important;
    margin-top:0 !important;
  }

  .hero-rules .hero-tagline{
    font-size:10px !important;
    line-height:1.25 !important;
    top:60% !important;
    width:95% !important;
  }

.hero-rules + .page-container{
  padding-top:0 !important;
  margin-top:-40px !important;
}

  .hero-rules + .page-container .section{
    margin-top:0 !important;
    padding-top:14px !important;
  }

.rules-photo-mobile{
  float:left;
  width:130px;
  margin:0 12px 8px 0;
  display:block;
}

.rules-photo-mobile img{
  width:100%;
  display:block;
  border-radius:8px;
}

.rules-side{
  display:block !important;
}

.rules-side figure:first-child{
  display:none !important;
}

.rules-side figure:last-child{
  display:block !important;
  margin-top:20px !important;
}

.rules h2{
  font-size:22px !important;
  line-height:1.3 !important;
  margin-bottom:14px !important;
}

.rules p,
.rules li{
  font-size:13px !important;
  line-height:1.45 !important;
}

.rules ul,
.rules ol{
  padding-left:18px !important;
}

}

@media (min-width:769px){
  .rules-photo-mobile{
    display:none;
  }
}

/* Join phone hero only */
@media (max-width:768px){

  .hero-join{
    height:140px !important;
    min-height:140px !important;
  }

  .hero-join h1{
    font-size:22px !important;
    line-height:1.1 !important;
    margin-bottom:4px !important;
    margin-top:0 !important;
  }

  .hero-join .hero-tagline{
    font-size:10px !important;
    line-height:1.25 !important;
    top:60% !important;
    width:95% !important;
  }

  .hero-join + .page-container{
    padding-top:0 !important;
    margin-top:30px !important;
  }

.hero-join + .page-container .section{
    margin-top:10px !important;
}

@media (max-width:768px){

  .intro-grid{
    display:block !important;
  }

.intro-left{
  display:none !important;
}

  .intro-right{
    display:block !important;
  }

.intro-right .card:first-child{
    background:none !important;
    box-shadow:none !important;
    padding-top:35px !important;
    padding-left:0 !important;
    padding-right:0 !important;
    padding-bottom:0 !important;
}

.intro-right figure.card{
    margin-top:20px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    text-align:center !important;
}

}

@media (max-width:768px){

  .intro-right h2{
    margin-top:-45px !important;
  }

}

.intro-right p,
.intro-right li{
  font-size:13px !important;
  line-height:1.45 !important;
}

}

/* Leaders phone hero only */
@media (max-width:768px){

  .hero-leaders{
    height:140px !important;
    min-height:140px !important;
  }

  .hero-leaders h1{
    font-size:22px !important;
    line-height:1.1 !important;
    margin-bottom:4px !important;
    margin-top:0 !important;
  }

  .hero-leaders .hero-tagline{
    font-size:10px !important;
    line-height:1.25 !important;
    top:60% !important;
    width:95% !important;
  }

  .hero-leaders + .page-container{
    padding-top:0 !important;
    margin-top:-40px !important;
  }

  @media (max-width:768px){

  .leaders-copy p,
  .leaders-copy li{
    font-size:13px !important;
    line-height:1.45 !important;
  }

}

}

/* Leaders page - mobile banner spacing */
@media (max-width:768px){

  .leaders-banner{
    margin-top:30px !important;
  }

    .leaders-banner p{
    font-size:8px !important;
    line-height:1.4 !important;
  }

/* Leaders member panel - mobile */
.panel-head h3{
  font-size:16px !important;
}

#panelSub{
  font-size:13px !important;
}

.team-tabs button{
  font-size:11px !important;
  padding:4px 8px !important;
}

.card .who b{
  font-size:14px !important;
}

.card .who small,
.card small{
  font-size:11px !important;
}

.panel-foot{
  font-size:11px !important;
}

.panel-foot .cta{
  font-size:11px !important;
  padding:6px 12px !important;
}

/* Members Overview - mobile */
.mo-title{
  font-size:14px !important;
}

.mo-search{
  font-size:12px !important;
  height:34px !important;
}

.mo-card{
  padding:6px !important;
}

.mo-card img{
  height:80px !important;
}

.mo-name{
  font-size:12px !important;
  font-weight:700 !important;
}

.mo-city{
  font-size:10px !important;
}

.mo-grid{
  gap:8px !important;
}

}

/* Pricing phone hero only */
@media (max-width:768px){

  .hero-pricing{
    height:140px !important;
    min-height:140px !important;
  }

  .hero-pricing h1{
    font-size:22px !important;
    line-height:1.1 !important;
    margin-bottom:4px !important;
    margin-top:0 !important;
  }

  .hero-pricing .hero-tagline{
    font-size:10px !important;
    line-height:1.25 !important;
    top:60% !important;
    width:95% !important;
  }

  .hero-pricing + .page-container{
    padding-top:0 !important;
    margin-top:20px !important;
  }

  /* Pricing intro text */
  .pricing-intro{
    font-size:13px !important;
    line-height:1.45 !important;
    margin-bottom:14px !important;
  }

  /* Package cards */
  .pkg-card{
    padding:12px !important;
  }

  
  .pkg-card h3{
    font-size:22px !important;
    line-height:1.3 !important;
  }

  .pkg-card p,
  .pkg-card li{
    font-size:13px !important;
    line-height:1.45 !important;
  }

  .price-chip{
    font-size:13px !important;
  }
}

/* Reservation phone hero only */
@media (max-width:768px){

  .hero-reservation{
    height:140px !important;
    min-height:140px !important;
  }

  .hero-reservation h1{
    font-size:22px !important;
    line-height:1.1 !important;
    margin-bottom:4px !important;
    margin-top:0 !important;
  }

  .hero-reservation .hero-tagline{
    font-size:10px !important;
    line-height:1.25 !important;
    top:60% !important;
    width:95% !important;
  }

  .hero-reservation + .page-container{
    padding-top:0 !important;
    margin-top:20px !important;
  }

/* Reservation content text */
.intro p,
.intro li{
  font-size:13px !important;
  line-height:1.45 !important;
}

.intro h3{
  font-size:22px !important;
  line-height:1.3 !important;
}

}

/* Gallery phone hero only */
@media (max-width:768px){

  .hero-gallery{
    height:140px !important;
    min-height:140px !important;
  }

  .hero-gallery h1{
    font-size:22px !important;
    line-height:1.1 !important;
    margin-bottom:4px !important;
    margin-top:0 !important;
  }

  .hero-gallery .hero-tagline{
    font-size:10px !important;
    line-height:1.25 !important;
    top:60% !important;
    width:95% !important;
  }

  .hero-gallery + .page-container{
    padding-top:0 !important;
    margin-top:20px !important;
  }

/* Gallery content text */
@media (max-width:768px){

  .page h1{
    font-size:24px !important;
    line-height:1.2 !important;
  }

  .page .muted,
  .notice,
  .warn,
  .bar input,
  .bar select,
  .bar button{
    font-size:13px !important;
    line-height:1.45 !important;
  }

  .cap .title{
    font-size:13px !important;
  }

  .cap .date{
    font-size:11px !important;
  }
}

@media (max-width:768px){

  #refreshBtn{
    width:36px !important;
    min-width:36px !important;
    padding:6px 0 !important;
    text-align:center !important;
    font-size:18px !important;
  }

}

#sort{
  width:85px !important;
  min-width:85px !important;
  padding-left:10px !important;
  padding-right:24px !important;
}

.bar .search{
  flex:1 1 auto !important;
  min-width:0 !important;
}

.bar input[type="search"]{
  width:100% !important;
  padding:10px 8px !important;
}

/* Gallery full-view overlay text - phone only */
@media (max-width:768px){

  .ovTitle{
    font-size:13px !important;
  }

  .ovDesc{
    font-size:11px !important;
  }

  .ovBy{
    font-size:11px !important;
  }

  .ovDate{
    font-size:11px !important;
  }
}

}

/* Contact Us phone hero only */
@media (max-width:768px){

  .hero-contact{
    height:140px !important;
    min-height:140px !important;
  }

  .hero-contact h1{
    font-size:22px !important;
    line-height:1.1 !important;
    margin-bottom:4px !important;
    margin-top:0 !important;
  }

  .hero-contact .hero-tagline{
    font-size:10px !important;
    line-height:1.25 !important;
    top:60% !important;
    width:95% !important;
  }

  .hero-contact + .page-container{
    padding-top:0 !important;
    margin-top:20px !important;
  }

/* Contact intro text */
.hero-contact + .page-container > div:first-child{
  font-size:13px !important;
  line-height:1.45 !important;
}

.hero-contact + .page-container > div:first-child .muted{
  font-size:13px !important;
  line-height:1.45 !important;
}

/* Contact intro text */
.page-container > div:first-of-type .muted{
  font-size:13px !important;
  line-height:1.45 !important;
}

/* Refund button */
#openRefundForm{
  font-size:10px !important;
}

.card h3{
  font-size:20px !important;
  line-height:1.3 !important;
}

}

@media (max-width:768px){

  .card{
    font-size:14px !important;
  }

  .card h3,
  .h{
    font-size:18px !important;
  }

  .card label{
    font-size:13px !important;
  }

  .card input,
  .card textarea,
  .card select{
    font-size:13px !important;
  }

  .card .muted{
    font-size:13px !important;
  }

  .card strong,
  .card div,
  .card a{
    font-size:14px !important;
  }

}

/* Profile phone cover only */
@media (max-width:768px){

  .profile-cover{
    height:140px !important;
    min-height:140px !important;
    margin-top:0 !important;
  }

  .profile-photo{
    width:90px !important;
    height:90px !important;
  }

  .profile-photo-wrapper{
    bottom:-45px !important;
  }

}


/* Profile name smaller on phone */
@media (max-width:768px){

  .profile-title,
  .profile-name,
  #profileName{
      font-size:16px !important;
      line-height:1.1 !important;
      font-weight:700 !important;
  }

}

/* Profile Home / Logout mobile fix */
@media (max-width:768px){

  .profile-nav{
    width:100% !important;
    padding:0 8px !important;
    margin-left:0 !important;

    display:flex !important;
    justify-content:space-between !important;
    align-items:center !important;
  }

  #homeLink{
    margin-left:-25px !important;
    font-size:12px !important;
  }

  #logoutLink{
    margin-right:-10px !important;
    font-size:12px !important;
  }

}

@media (max-width:768px){

  .profile-info{
    display:block !important;
    max-width:100% !important;
    width:100% !important;
    padding:0 18px !important;
  }

  .profile-name{
    margin-left:0 !important;
  }

  .member-rating{
    display:none !important;
  }

  .profile-expertise-calendar{
    display:block !important;
  }

.profile-expertise-calendar{
    display:block !important;
    margin-top:-25px !important;
}

  .profile-calendar-wrapper{
    margin-left:0 !important;
    width:100% !important;
  }

.profile-calendar{
    width:100% !important;
    max-width:320px !important;
    margin:40px auto 0 auto !important;
}

.calendar-weekdays,
#calendarGrid{
    width:290px !important;
    margin:0 auto !important;
}

.calendar-header{
    width:290px !important;
    margin:0 auto !important;
    justify-content:center !important;
}

.profile-calendar{
    width:290px !important;
    margin:18px auto 0 auto !important;  /* was 0 */
}

.calendar-header{
    width:290px !important;
    height:42px !important;              /* shorter banner */
    padding:4px 0 !important;            /* less top/bottom space */
}

.profile-name h2{
    font-size:13px !important;
    line-height:1.15 !important;
    word-break:break-word !important;
}

  .member-id{
    font-size:12px !important;
  }

  .private-info,
  .private-info p,
  .private-info a{
    font-size:12px !important;
    line-height:1.4 !important;
  }

.mobile-rating-card{
    display:block !important;

    width:260px !important;
    max-width:260px !important;

    margin:12px auto -14px auto !important;

    padding:10px 12px !important;

    order:2;
}

.profile-name{
    order:1;
}

.profile-info{
    display:flex !important;
    flex-direction:column !important;
}

.mobile-rating-card h3,
.mobile-rating-card .rating-title{
    font-size:16px !important;
    margin-bottom:2px !important;
}

.mobile-rating-card .rating-row{
    display:flex;
    justify-content:space-between;
    align-items:center;

    margin:-4px 0 !important;
    line-height:1.5 !important;

    font-size:12px !important;
}

.mobile-rating-card .stars{
    font-size:18px;
}

.mobile-rating-card .rating-summary{
    margin-top:4px !important;
    font-size:12px !important;
    font-weight:600;
}

  .bio-title{
    font-size:16px !important;
  }

  .bio-text{
    font-size:12px !important;
    line-height:1.4 !important;
  }

  .expertise-row,
  .team-row{
    font-size:12px !important;
  }

  .calendar-header{
    font-size:14px !important;
  }

  .calendar-weekdays div{
    font-size:12px !important;
  }

.calendar-date-num{
    font-size:12px !important;
}

.calendar-day{
    height:38px !important;
}

.calendar-weekdays div{
    font-size:11px !important;
}

.calendar-header{
    font-size:12px !important;
}

/* Mobile Service Listings */
.profile-services{
    width:100% !important;
    max-width:290px !important;

    margin:100px auto 0 auto !important;

    text-align:center !important;
}

.profile-services h3,
.profile-services h2{
    display:block !important;
    font-size:14px !important;
    margin:10px 0 8px 0 !important;
    text-align:left !important;

    width:100% !important;
}

.profile-services::before{
    content:"Service Listings";
    display:block;
    font-size:20px;
    font-weight:600;
    color:#222;
    margin-bottom:16px;
    text-align:left;
}

.service-dropdown{
    max-width:220px !important;
    width:220px !important;

    margin:8px auto 0 auto !important;

    padding:8px 12px !important;

    font-size:12px !important;

    border-radius:18px !important;
}

}

/* Mobile Gallery - phone only */
@media (max-width:768px){

  .profile-gallery{
      margin-top:20px !important;
  }

  .gallery-header{
      gap:8px !important;
      align-items:center !important;
  }

  .add-photo-btn{
      width:30px !important;
      height:30px !important;
      font-size:24px !important;
  }

  .add-photo-text{
      font-size:10px !important;
  }

  .media-guideline-link{
      font-size:10px !important;
  }

  .gallery-card{
      width:65px !important;
      height:106px !important;
  }

  .gallery-card img,
  .gallery-card video{
      width:65px !important;
      height:106px !important;
      object-fit:cover !important;
  }

  .gallery-grid{
      gap:12px !important;
  }

}

/* ========================================
PROFILE MOBILE POPUPS
======================================== */
@media (max-width:768px){

  .crew-confirmations{
    width:95% !important;
    max-width:95% !important;
    padding:12px !important;
    border-radius:14px !important;
    max-height:85vh !important;
    overflow-y:auto !important;
  }

  .confirm-card{
    padding:12px !important;
    border-radius:10px !important;
  }

  .confirm-header{
    font-size:14px !important;
    margin-bottom:10px !important;
  }

  .confirm-body p,
  .confirm-row{
    font-size:12px !important;
    line-height:1.35 !important;
  }

  .confirm-actions{
    display:flex !important;
    justify-content:center !important;
    gap:10px !important;
    margin-top:12px !important;
  }

  .btn-accept,
  .btn-decline{
    min-width:110px !important;
    font-size:13px !important;
    padding:8px 14px !important;
  }

  .details-btn{
    font-size:11px !important;
  }

}

/* ========================================
WELCOME POPUP - MOBILE
======================================== */
@media (max-width:768px){

  .welcome-modal{
    width:95% !important;
    max-width:95% !important;

    position:fixed !important;
    top:50% !important;
    left:50% !important;
    transform:translate(-50%,-50%) !important;

    margin:0 !important;
    z-index:9999 !important;
  }

  .welcome-box{
    max-width:100% !important;

    padding:18px !important;

    border-radius:12px !important;

    max-height:80vh !important;
    overflow-y:auto !important;
  }

  .welcome-box h2{
    font-size:18px !important;
    line-height:1.3 !important;
    margin-bottom:12px !important;
  }

  .welcome-box p{
    font-size:13px !important;
    line-height:1.5 !important;
  }

  .welcome-btn{
    display:block !important;
    margin:14px auto 0 auto !important;

    font-size:13px !important;
    padding:8px 18px !important;
  }  
}

/* Profile logout popup - phone */
@media (max-width:768px){

  #logoutModal > div{
    min-width:280px !important;
    width:85% !important;
    max-width:320px !important;

    padding:18px 16px !important;
  }

  #logoutModal h2{
    font-size:16px !important;
    line-height:1.3 !important;
    margin-bottom:18px !important;
  }

  #logoutModal button{
    font-size:13px !important;
    padding:8px 16px !important;
  }

  #logoutModal div[style*="gap:40px"]{
    gap:12px !important;
  }

}

/* =========================================
   PAGE NAVIGATION ARROWS
========================================= */

.page-nav-arrow{
  position:fixed;
  top:50%;
  transform:translateY(-50%);
  width:42px;
  height:42px;
  border-radius:50%;
  background:rgba(255,255,255,.95);
  border:2px solid #d8d8d8;
  box-shadow:0 2px 8px rgba(0,0,0,.15);

  display:flex;
  align-items:center;
  justify-content:center;

  text-decoration:none;
  font-size:24px;
  font-weight:bold;

  color:#666;

  z-index:99999 !important;

  pointer-events:auto !important;

  transition:.2s;
}

.page-nav-arrow:hover{
  background:#fff;
  color:#0a57a3;
}

.page-nav-prev{
  left:10px;
}

.page-nav-next{
  right:10px;
}