/*
Theme Name: Cebuana Foodie
Theme URI: https://example.com/
Author: Cebuana Foodie
Description: A clean, editorial food journal theme designed for the Cebuana Foodie Core plugin.
Version: 1.8.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: cebuana-foodie
*/
:root{--ink:#242526;--muted:#77736e;--accent:#78624E;--paper:#fff;--line:#E9E7E4;--soft:#FFFFFF;--width:1120px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.75 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
a{color:inherit;text-decoration:none}a:hover{color:var(--accent)}img{max-width:100%;height:auto}figure{margin:0}
.cf-container{width:min(calc(100% - 44px),var(--width));margin-inline:auto}
.cf-site-header{background:#fff;border-bottom:1px solid var(--line)}
.cf-header-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:25px 0}
.cf-brand{font-family:Georgia,"Times New Roman",serif;font-size:30px;font-weight:700;letter-spacing:-1.1px;line-height:1.1}
.cf-tagline{font-size:10px;letter-spacing:2px;text-transform:uppercase;color:var(--muted);margin-top:8px}
.cf-menu{display:flex;gap:25px;align-items:center;list-style:none;padding:0;margin:0;font-size:13px;font-weight:600}
.cf-menu li{list-style:none}.cf-menu .current-menu-item>a{color:var(--accent)}
.cf-main{min-height:58vh;padding:48px 0 90px}
.cf-main:has(.cf-home){padding-top:0}
h1,h2,h3,h4{font-family:Georgia,"Times New Roman",serif;line-height:1.2;letter-spacing:-.035em}
h1{font-size:clamp(36px,5vw,62px);margin:0 0 20px}h2{font-size:clamp(25px,3vw,36px)}h3{font-size:23px}
p{margin:0 0 20px}.cf-eyebrow,.cf-kicker{color:var(--accent);font-size:11px;font-weight:700;letter-spacing:2px;text-transform:uppercase}
.cf-home-intro{padding:76px 20px 68px;text-align:center;background:var(--soft);margin-bottom:58px}
.cf-home-intro h1{max-width:740px;margin:8px auto 20px}.cf-home-intro>p:not(.cf-eyebrow){color:var(--muted);max-width:590px;margin:0 auto 26px}
.cf-home-intro form{max-width:530px;margin:auto;display:flex;gap:8px}
input[type=search]{width:100%;border:1px solid #dedbd6;background:#fff;padding:15px 18px;font:inherit;font-size:14px;border-radius:3px}
button,input[type=submit],.cf-btn{border:0;border-radius:3px;background:var(--ink);color:#fff;padding:14px 22px;font-weight:600;cursor:pointer}
button:hover,input[type=submit]:hover,.cf-btn:hover{background:var(--accent);color:#fff}
.cf-home section>h2{margin-bottom:28px}
.cf-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:38px 25px}
.cf-card a{display:block}.cf-card img,.cf-card-placeholder{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;background:#F3F2F0}
.cf-card-placeholder{display:grid;place-items:center;color:#99918a;font-family:Georgia,serif}
.cf-card-type{display:block;color:var(--accent);font-size:10px;letter-spacing:1.5px;text-transform:uppercase;margin-top:15px;font-weight:700}
.cf-card h3{font-size:22px;margin:5px 0 0}
.cf-archive-heading{margin:0 0 38px;border-bottom:1px solid var(--line);padding-bottom:25px}
.cf-archive-heading p{color:var(--muted);margin:10px 0 0}
.cf-article{max-width:820px;margin:auto}.cf-article-header{text-align:center;margin:0 auto 34px;max-width:790px}
.cf-article-header .cf-kicker{margin-bottom:12px}.cf-article-header h1{font-size:clamp(36px,5vw,56px)}
.cf-article-meta{color:var(--muted);font-size:13px}
.cf-article-hero{margin:0 0 38px}.cf-article-hero img{width:100%;max-height:540px;object-fit:cover}
.cf-article-body{max-width:760px;margin:auto}.cf-article-body>p{font-size:17px}
.cf-article-body h2{margin-top:42px}.cf-article-body ul,.cf-article-body ol{padding-left:24px}
.cf-article-body .cf-public-review{max-width:none}
.cf-public-review .cf-hero{display:none} /* theme already renders the featured image */
.cf-related{border-top:1px solid var(--line);padding-top:32px;margin-top:60px}
.cf-related .cf-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.cf-pagination{margin-top:45px;display:flex;gap:16px}
.cf-site-footer{border-top:1px solid var(--line);padding:36px 0;text-align:center;color:var(--muted);font-size:13px}
.cf-footer-brand{font-family:Georgia,serif;font-size:22px;color:var(--ink)}
.cf-empty{padding:30px 0;color:var(--muted)}
.cf-mobile-toggle{display:none}
.wp-block-image img{height:auto}
@media(max-width:800px){.cf-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cf-header-inner{flex-wrap:wrap}.cf-menu{gap:14px;flex-wrap:wrap}.cf-brand{font-size:27px}}
@media(max-width:560px){.cf-container{width:min(calc(100% - 32px),var(--width))}.cf-header-inner{padding:18px 0}.cf-brand{font-size:25px}.cf-tagline{font-size:8px}.cf-menu{gap:10px;font-size:12px}.cf-main{padding:28px 0 60px}.cf-home-intro{padding:50px 15px;margin-bottom:40px}.cf-home-intro form{flex-direction:column}.cf-card-grid,.cf-related .cf-card-grid{grid-template-columns:1fr;gap:28px}.cf-article-header h1{font-size:36px}}

/* Restaurant review layout v1.2 — preserve the clean editorial look */
.cf-restaurant-page{max-width:1100px;margin:auto}.cf-review-heading{max-width:790px;margin-bottom:38px}
.cf-restaurant-gallery{max-width:1050px;margin:0 auto 45px}.cf-gallery-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;border-radius:5px}.cf-gallery-track::-webkit-scrollbar{display:none}.cf-gallery-slide{flex:0 0 100%;scroll-snap-align:start}.cf-gallery-slide img{display:block;width:100%;height:clamp(260px,48vw,540px);object-fit:cover}.cf-gallery-controls{display:flex;align-items:center;justify-content:center;gap:22px;margin-top:12px}.cf-gallery-controls button{background:transparent;border:1px solid var(--line);color:var(--ink);padding:7px 14px}.cf-gallery-count{font-size:12px;color:var(--muted)}
.cf-review-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:64px;align-items:start}.cf-review-main{min-width:0}.cf-review-main .cf-article-body,.cf-review-main .cf-public-review{max-width:none;width:100%}.cf-review-main .cf-public-review .cf-details{display:none}.cf-review-main .cf-public-review .cf-hero{display:none}.cf-review-main .cf-public-review .cf-public-dish{display:block;padding:30px 0 38px}.cf-review-main .cf-dish-photo{margin-bottom:20px}.cf-review-main .cf-dish-photo img{width:100%;height:auto;max-height:none;aspect-ratio:auto;object-fit:contain;border-radius:4px}.cf-review-main .cf-dish-heading h3{font-size:24px}.cf-review-main .cf-public-review section{margin-top:38px;margin-bottom:38px}.cf-review-sidebar{position:sticky;top:25px;min-width:0}.cf-side-panel{background:#f8f7f5;padding:22px;margin-bottom:24px;border-radius:4px}.cf-side-panel h2,.cf-side-recs h2{font-size:22px;margin:0 0 16px}.cf-side-panel p{font-size:13px;line-height:1.7;margin:0 0 12px;overflow-wrap:anywhere}.cf-side-rating{border-top:1px solid #e3dfda;padding-top:14px;margin-top:14px!important}.cf-side-rating strong{display:block;color:var(--accent);font-size:18px}.cf-map-panel iframe{width:100%;height:210px;border:0;background:#eee;display:block;margin-bottom:12px}.cf-map-panel a{font-size:13px;text-decoration:underline;text-underline-offset:3px}.cf-side-recs{margin-top:30px}.cf-side-rec{display:block;border-bottom:1px solid var(--line);padding:0 0 20px;margin-bottom:20px;font:600 15px/1.35 Georgia,serif}.cf-side-rec img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;margin-bottom:9px}.cf-review-main .cf-related{display:none}
@media(max-width:850px){.cf-review-layout{grid-template-columns:minmax(0,1fr) 225px;gap:28px}}
@media(max-width:680px){.cf-review-layout{grid-template-columns:1fr;gap:24px}.cf-review-sidebar{position:static}.cf-gallery-slide img{height:clamp(250px,70vw,430px)}.cf-review-main .cf-public-dish{padding:22px 0 30px}.cf-review-heading{margin-bottom:24px}}

/* Restaurant photo refinements v1.3 */
.cf-restaurant-gallery{max-width:850px;margin-bottom:32px}
.cf-gallery-track{background:#f8f7f5}
.cf-gallery-slide{margin:0;display:flex;align-items:center;justify-content:center;min-width:0}
.cf-gallery-slide img{width:auto;max-width:100%;height:auto;max-height:420px;object-fit:contain;margin:auto}
.cf-review-main .cf-public-review .cf-public-dish{display:block;padding:16px 0 28px;margin:0;border-bottom:1px solid var(--line)}
.cf-review-main .cf-public-dish .cf-dish-heading{margin-bottom:0}
.cf-review-main .cf-public-dish .cf-dish-heading h3{font-size:24px;line-height:1.35;margin:0 0 3px}
.cf-review-main .cf-public-dish .cf-dish-rating{margin:0 0 12px}
.cf-review-main .cf-dish-photo{position:relative;display:inline-block;max-width:100%;margin:0 0 13px;cursor:zoom-in;line-height:0}
.cf-review-main .cf-dish-photo img{display:block;width:auto;max-width:100%;height:auto;max-height:330px;object-fit:contain;border-radius:4px}
.cf-photo-hint{position:absolute;right:9px;bottom:9px;background:rgba(25,23,22,.75);color:#fff;font:12px/1.2 Arial,sans-serif;padding:7px 9px;border-radius:3px;opacity:0;transition:opacity .15s}
.cf-dish-photo:hover .cf-photo-hint,.cf-dish-photo:focus-visible .cf-photo-hint{opacity:1}
.cf-review-main .cf-public-dish .cf-dish-body p:first-child{margin-top:0}
.cf-review-main .cf-public-dish .cf-dish-body p:last-child{margin-bottom:0}
.cf-review-main .cf-public-review section{margin-top:28px;margin-bottom:28px}
.cf-photo-lightbox{position:fixed;inset:0;z-index:99999;background:rgba(0,0,0,.9);display:flex;align-items:center;justify-content:center;padding:55px 20px 25px}
.cf-photo-lightbox[hidden]{display:none}
.cf-photo-lightbox img{display:block;max-width:100%;max-height:100%;object-fit:contain}
.cf-lightbox-close{position:absolute;top:10px;right:15px;background:transparent;border:0;color:#fff;font-size:34px;line-height:1;cursor:pointer;padding:6px 12px}
@media(max-width:680px){.cf-gallery-slide img{max-height:320px}.cf-review-main .cf-dish-photo img{max-height:280px}.cf-review-main .cf-public-review .cf-public-dish{padding:15px 0 25px}}


/* Restaurant layout refinements v1.4 */
.cf-restaurant-gallery{max-width:1050px;margin:0 auto 34px}
.cf-gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:stretch}
.cf-gallery-item{position:relative;display:block;min-width:0;overflow:hidden;line-height:0;border-radius:3px;background:transparent;cursor:zoom-in}
.cf-gallery-item img{display:block;width:100%;height:190px;max-height:none;object-fit:cover;transition:transform .2s ease}
.cf-gallery-item:hover img{transform:scale(1.025)}
.cf-gallery-item .cf-photo-hint{line-height:1.2}
.cf-review-main .cf-dish-photo{display:block;width:100%;max-width:100%;margin:0 0 18px}
.cf-review-main .cf-dish-photo img{display:block;width:100%;height:auto;max-height:none;object-fit:contain}
.cf-review-main .cf-public-dish .cf-dish-heading{margin-bottom:3px}
.cf-review-main .cf-public-dish .cf-dish-rating{margin-bottom:14px}
.cf-review-main .cf-public-review .cf-verdict{display:none}
.cf-side-verdict-answer{font:600 19px/1.4 Georgia,serif;color:var(--accent);margin-bottom:0!important}
@media(max-width:850px){.cf-gallery-grid{gap:8px}.cf-gallery-item img{height:145px}}
@media(max-width:600px){.cf-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.cf-gallery-item img{height:clamp(130px,37vw,230px)}.cf-review-main .cf-dish-photo img{width:100%;max-height:none}}
@media(prefers-reduced-motion:reduce){.cf-gallery-item img{transition:none}}


/* v1.5 — compact, wide dish images; remove excessive vertical gaps.
   Crop is display-only: lightbox still opens the uncropped original. */
.cf-review-main .cf-public-review .cf-public-dish{
  display:block;
  margin:0;
  padding:16px 0 22px;
  border-bottom:1px solid var(--line);
}
.cf-review-main .cf-public-dish .cf-dish-heading{margin:0 0 2px}
.cf-review-main .cf-public-dish .cf-dish-rating{margin:0 0 9px}
.cf-review-main .cf-public-dish .cf-dish-photo{
  display:block;
  width:100%;
  max-width:100%;
  margin:0 0 12px;
  line-height:0;
  overflow:hidden;
  border-radius:4px;
}
.cf-review-main .cf-public-dish .cf-dish-photo img{
  display:block;
  width:100%;
  max-width:100%;
  height:260px;
  max-height:260px;
  object-fit:cover;
  object-position:center;
  border-radius:4px;
}
.cf-review-main .cf-public-dish .cf-dish-body{margin:0}
.cf-review-main .cf-public-dish .cf-dish-body p{margin:0 0 9px;line-height:1.7}
.cf-review-main .cf-public-dish .cf-dish-body p:last-child{margin-bottom:0}
.cf-review-main .cf-public-review section{margin-top:23px;margin-bottom:23px}
.cf-review-main .cf-public-review section.cf-public-dish{margin:0}
@media(max-width:680px){
  .cf-review-main .cf-public-review .cf-public-dish{padding:14px 0 20px}
  .cf-review-main .cf-public-dish .cf-dish-photo img{height:210px;max-height:210px}
}

/* v1.6: show entire original aspect ratio for dish photos, no crop */
.cf-review-main .cf-public-dish .cf-dish-photo img{
  width:100%;
  height:auto;
  max-height:none;
  object-fit:contain;
  object-position:center;
}
@media(max-width:680px){
  .cf-review-main .cf-public-dish .cf-dish-photo img{
    width:100%;
    height:auto;
    max-height:none;
    object-fit:contain;
  }
}

/* v1.7: portrait and landscape dish photos at natural proportions, compact display. */
.cf-review-main .cf-public-dish .cf-dish-photo {
  display:inline-block; width:auto; max-width:100%; margin:0 0 12px;
}
.cf-review-main .cf-public-dish .cf-dish-photo img {
  display:block; width:auto; max-width:100%; height:auto; max-height:430px;
  object-fit:contain; object-position:left center;
}
@media(max-width:680px){
  .cf-review-main .cf-public-dish .cf-dish-photo img {
    width:auto; max-width:100%; height:auto; max-height:350px; object-fit:contain;
  }
}

/* v1.8: centre naturally sized dish photos without stretching or cropping */
.cf-review-main .cf-public-dish .cf-dish-photo {
  display:block; width:fit-content; max-width:100%; margin:0 auto 12px;
}
.cf-review-main .cf-public-dish .cf-dish-photo img {
  display:block; width:auto; max-width:100%; height:auto; max-height:430px;
  object-fit:contain; object-position:center; margin:0 auto;
}
@media(max-width:680px){
  .cf-review-main .cf-public-dish .cf-dish-photo img {max-height:350px;}
}
